[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @enrol @enrol_lti 2 Feature: Check that settings are adhered to when creating an enrolment plugin 3 In order to create an LTI enrolment instance 4 As an admin 5 I need to ensure the site-wide settings are used 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | 10 | teacher1 | Teacher | 1 | teacher1@example.com | 11 | student1 | Student | 1 | student1@example.com | 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 "admin" 19 And I navigate to "Manage enrol plugins" node in "Site administration > Plugins > Enrolments" 20 And I click on "Enable" "link" in the "Publish as LTI tool" "table_row" 21 And I navigate to "Publish as LTI tool" node in "Site administration > Plugins > Enrolments" 22 And I set the following fields to these values: 23 | Email display | Allow everyone to see my email address | 24 | City/town | Perth | 25 | Select a country | Australia | 26 | Timezone | Australia/Perth | 27 | Institution | Moodle Pty Ltd | 28 And I press "Save changes" 29 And I log out 30 31 Scenario: As an admin set site-wide settings for the enrolment plugin and ensure they are used 32 Given I log in as "teacher1" 33 And I follow "Course 1" 34 And I navigate to "Enrolment methods" node in "Course administration > Users" 35 And I select "Publish as LTI tool" from the "Add method" singleselect 36 When I expand all fieldsets 37 Then the field "Email display" matches value "Allow everyone to see my email address" 38 And the field "City/town" matches value "Perth" 39 And the field "Select a country" matches value "Australia" 40 And the field "Timezone" matches value "Australia/Perth" 41 And the field "Institution" matches value "Moodle Pty Ltd" 42 And I set the following fields to these values: 43 | Email display | Hide my email address from everyone | 44 | City/town | Whistler | 45 | Select a country | Canada | 46 | Timezone | America/Vancouver | 47 | Institution | Moodle Pty Ltd - remote | 48 And I press "Add method" 49 And I click on "Edit" "link" in the "Publish as LTI tool" "table_row" 50 And the field "Email display" matches value "Hide my email address from everyone" 51 And the field "City/town" matches value "Whistler" 52 And the field "Select a country" matches value "Canada" 53 And the field "Timezone" matches value "America/Vancouver" 54 And the field "Institution" matches value "Moodle Pty Ltd - remote"
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 |