[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 @core @core_my 2 Feature: Restrict which blocks can be added to My home 3 In order to restrict which blocks can be added 4 As a student I need to ensure I can add the blocks 5 As an admin I need to remove the capability to add a blocks 6 As a student I need to ensure I can't add the blocks any more 7 8 Background: 9 Given the following "users" exist: 10 | username | firstname | lastname | email | 11 | student1 | Student | 1 | [email protected] | 12 And the following "courses" exist: 13 | fullname | shortname | format | 14 | Course 1 | C1 | topics | 15 And the following "course enrolments" exist: 16 | user | course | role | 17 | student1 | C1 | student | 18 19 Scenario: The comments block can be added to My home by default 20 And I log in as "student1" 21 And I click on "My home" "link" in the "Navigation" "block" 22 And I press "Customise this page" 23 Then the "Add a block" select box should contain "Comments" 24 And the "Add a block" select box should contain "Courses" 25 And the "Add a block" select box should contain "HTML" 26 And the "Add a block" select box should contain "Tags" 27 28 @javascript 29 Scenario: Remove the ability to add the comments block to My home 30 When I log in as "admin" 31 And I set the following system permissions of "Authenticated user" role: 32 | block/comments:myaddinstance | Prohibit | 33 | block/course_list:myaddinstance | Prohibit | 34 | block/html:myaddinstance | Prohibit | 35 And I log out 36 And I log in as "student1" 37 And I click on "My home" "link" in the "Navigation" "block" 38 And I press "Customise this page" 39 Then the "Add a block" select box should not contain "Comments" 40 And the "Add a block" select box should not contain "Courses" 41 And the "Add a block" select box should not contain "HTML" 42 And the "Add a block" select box should contain "Tags"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |