[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 @enrol @enrol_guest 2 Feature: Guest users can auto-enrol themself in courses where guest access is allowed 3 In order to access courses contents 4 As a guest 5 I need to access courses as a guest 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | 10 | teacher1 | Teacher | 1 | [email protected] | 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 | teacher1 | C1 | editingteacher | 18 And I log in as "teacher1" 19 And I follow "Course 1" 20 And I turn editing mode on 21 And I add a "Forum" to section "1" and I fill the form with: 22 | Forum name | Test forum name | 23 | Description | Test forum description | 24 And I click on "Edit settings" "link" in the "Administration" "block" 25 26 @javascript 27 Scenario: Allow guest access without password 28 Given I set the following fields to these values: 29 | Allow guest access | Yes | 30 And I press "Save changes" 31 And I log out 32 And I log in as "student1" 33 And I follow "Course 1" 34 When I follow "Test forum name" 35 Then I should not see "Subscribe to this forum" 36 37 @javascript 38 Scenario: Allow guest access with password 39 Given I set the following fields to these values: 40 | Allow guest access | Yes | 41 | Password | moodle_rules | 42 And I press "Save changes" 43 And I log out 44 And I log in as "student1" 45 When I follow "Course 1" 46 Then I should see "Guest access" 47 And I set the following fields to these values: 48 | Password | moodle_rules | 49 And I press "Submit" 50 And I should see "Test forum name"
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 |