[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @core @core_course 2 Feature: Rename roles in a course 3 In order to account for course-level differences 4 As a teacher 5 I need to be able to rename roles 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | 10 | student1 | Student | 1 | student1@example.com | 11 | teacher1 | Teacher | 1 | teacher1@example.com | 12 And the following "courses" exist: 13 | fullname | shortname | 14 | Course 1 | C1 | 15 And the following "course enrolments" exist: 16 | user | course | role | 17 | student1 | C1 | student | 18 | teacher1 | C1 | editingteacher | 19 20 Scenario: Teacher can rename roles 21 Given I log in as "teacher1" 22 And I follow "Course 1" 23 And I click on "Edit settings" "link" in the "Administration" "block" 24 And I should see "Role renaming" 25 When I set the following fields to these values: 26 | Your word for 'Teacher' | Lecturer | 27 | Your word for 'Student' | Learner | 28 And I press "Save and display" 29 And I navigate to "Enrolled users" node in "Course administration > Users" 30 Then I should see "Lecturer" in the "Teacher 1" "table_row" 31 And I should see "Learner" in the "Student 1" "table_row" 32 33 Scenario: Ability to rename roles can be prevented 34 Given I log in as "admin" 35 And I set the following system permissions of "Teacher" role: 36 | capability | permission | 37 | moodle/course:renameroles | Inherit | 38 And I follow "Log out" 39 When I log in as "teacher1" 40 And I follow "Course 1" 41 And I click on "Edit settings" "link" in the "Administration" "block" 42 Then I should not see "Role renaming" 43 And I should not see "Your word for 'Teacher'"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |