X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/theme/classic/tests/behat
home
/
cbholdings
/
pasukulu
/
theme
/
classic
/
tests
/
behat
/
📁
..
📄
addblock.feature
(1.34 KB)
📄
behat_theme_classic_behat_admin.php
(4.29 KB)
📄
behat_theme_classic_behat_blocks.php
(4 KB)
📄
behat_theme_classic_behat_completion.php
(1.57 KB)
📄
behat_theme_classic_behat_core_question.php
(2 KB)
📄
behat_theme_classic_behat_course.php
(2.82 KB)
📄
behat_theme_classic_behat_general.php
(2.1 KB)
📄
behat_theme_classic_behat_grade.php
(2.18 KB)
📄
behat_theme_classic_behat_grading.php
(1.64 KB)
📄
behat_theme_classic_behat_navigation.php
(18.97 KB)
📄
behat_theme_classic_behat_repository_upload.php
(2.9 KB)
📄
blacklist.json
(668 B)
📄
category_role_assignment.feature
(1.6 KB)
📄
courseadministrationmenu.feature
(1011 B)
📄
mycoursesblocks.feature
(1.21 KB)
📄
pageadministrationmenu.feature
(2.11 KB)
📄
welcome_to_classicmoodle.feature
(1.33 KB)
Editing: category_role_assignment.feature
@core @core_course @theme_classic Feature: Role assignments can be made at the category level in classic 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
Upload File
Create Folder