MDL-49799 behat: use example.com as test email

asd.com is a valid domain, we should use reserved domain names for testing
This commit is contained in:
Rajesh Taneja 2015-04-10 13:52:26 +08:00
parent 99a5af9eda
commit e69a1a6b6f
175 changed files with 528 additions and 527 deletions

View file

@ -7,10 +7,10 @@ Feature: An administrator can filter user accounts by role, cohort and other pro
Background: Background:
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | auth | confirmed | | username | firstname | lastname | email | auth | confirmed |
| user1 | User | One | one@asd.com | manual | 0 | | user1 | User | One | one@example.com | manual | 0 |
| user2 | User | Two | two@asd.com | ldap | 1 | | user2 | User | Two | two@example.com | ldap | 1 |
| user3 | User | Three | three@asd.com | manual | 1 | | user3 | User | Three | three@example.com | manual | 1 |
| user4 | User | Four | four@asd.com | ldap | 0 | | user4 | User | Four | four@example.com | ldap | 0 |
And the following "cohorts" exist: And the following "cohorts" exist:
| name | idnumber | | name | idnumber |
| Cohort 1 | CH1 | | Cohort 1 | CH1 |
@ -23,8 +23,8 @@ Feature: An administrator can filter user accounts by role, cohort and other pro
| user2 | C1 | student | | user2 | C1 | student |
| user3 | C1 | student | | user3 | C1 | student |
And I log in as "admin" And I log in as "admin"
And I add "User Two (two@asd.com)" user to "CH1" cohort members And I add "User Two (two@example.com)" user to "CH1" cohort members
And I add "User Three (three@asd.com)" user to "CH1" cohort members And I add "User Three (three@example.com)" user to "CH1" cohort members
And I follow "Browse list of users" And I follow "Browse list of users"
@javascript @javascript

View file

@ -21,7 +21,7 @@ Feature: Upload users
And I should see "Tom" And I should see "Tom"
And I should see "Jones" And I should see "Jones"
And I should see "verysecret" And I should see "verysecret"
And I should see "jonest@someplace.edu" And I should see "jonest@example.com"
And I should see "Reznor" And I should see "Reznor"
And I should see "course1" And I should see "course1"
And I should see "math102" And I should see "math102"
@ -32,7 +32,7 @@ Feature: Upload users
And I follow "Browse list of users" And I follow "Browse list of users"
And I should see "Tom Jones" And I should see "Tom Jones"
And I should see "Trent Reznor" And I should see "Trent Reznor"
And I should see "reznor@someplace.edu" And I should see "reznor@example.com"
And I am on homepage And I am on homepage
And I follow "Maths" And I follow "Maths"
And I expand "Users" node And I expand "Users" node

View file

@ -69,8 +69,8 @@ Feature: Set up contextual data for tests
Scenario: Role overrides Scenario: Role overrides
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
And the following "categories" exist: And the following "categories" exist:
| name | category | idnumber | | name | category | idnumber |
| Cat 1 | 0 | CAT1 | | Cat 1 | 0 | CAT1 |
@ -99,7 +99,7 @@ Feature: Set up contextual data for tests
Scenario: Add course enrolments Scenario: Add course enrolments
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | format | | fullname | shortname | format |
| Course 1 | C1 | topics | | Course 1 | C1 | topics |
@ -117,11 +117,11 @@ Feature: Set up contextual data for tests
| Custom student | custom2 | | | | Custom student | custom2 | | |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| user1 | User | 1 | user1@moodlemoodle.com | | user1 | User | 1 | user1@example.com |
| user2 | User | 2 | user2@moodlemoodle.com | | user2 | User | 2 | user2@example.com |
| user3 | User | 3 | user3@moodlemoodle.com | | user3 | User | 3 | user3@example.com |
| user4 | User | 4 | user4@moodlemoodle.com | | user4 | User | 4 | user4@example.com |
| user5 | User | 5 | user5@moodlemoodle.com | | user5 | User | 5 | user5@example.com |
And the following "categories" exist: And the following "categories" exist:
| name | category | idnumber | | name | category | idnumber |
| Cat 1 | 0 | CAT1 | | Cat 1 | 0 | CAT1 |
@ -219,8 +219,8 @@ Feature: Set up contextual data for tests
Scenario: Add relations between users and groups Scenario: Add relations between users and groups
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
| student2 | Student | 2 | student2@asd.com | | student2 | Student | 2 | student2@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | | fullname | shortname |
| Course 1 | C1 | | Course 1 | C1 |
@ -259,8 +259,8 @@ Feature: Set up contextual data for tests
| Cat 1 | 0 | CAT1 | | Cat 1 | 0 | CAT1 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
| student2 | Student | 2 | student2@asd.com | | student2 | Student | 2 | student2@example.com |
And the following "cohorts" exist: And the following "cohorts" exist:
| name | idnumber | | name | idnumber |
| System cohort A | CHSA | | System cohort A | CHSA |

View file

@ -7,7 +7,7 @@ Feature: Edit capabilities
Background: Background:
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | category | | fullname | shortname | category |
| Course 1 | C1 | 0 | | Course 1 | C1 | 0 |

View file

@ -10,9 +10,9 @@ Feature: Verify that all form fields values can be get and set
| Course 1 | C1 | 0 | | Course 1 | C1 | 0 |
And the following "users" exist: And the following "users" exist:
| username | email | firstname | lastname | | username | email | firstname | lastname |
| student1 | s1@asd.com | Student | 1 | | student1 | s1@example.com | Student | 1 |
| student2 | s2@asd.com | Student | 2 | | student2 | s2@example.com | Student | 2 |
| student3 | s3@asd.com | Student | 3 | | student3 | s3@example.com | Student | 3 |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| student1 | C1 | student | | student1 | C1 | student |

View file

@ -58,7 +58,7 @@ class auth_db_events_testcase extends advanced_testcase {
$user = new stdClass(); $user = new stdClass();
$user->name = 'mark'; $user->name = 'mark';
$user->pass = 'password123'; $user->pass = 'password123';
$user->email = 'what@legend.com'; $user->email = 'what@example.com';
$user->id = $DB->insert_record('auth_db_users', $user); $user->id = $DB->insert_record('auth_db_users', $user);
// Run sync_users and capture the user_created event. // Run sync_users and capture the user_created event.
@ -107,7 +107,7 @@ class auth_db_events_testcase extends advanced_testcase {
$user = new stdClass(); $user = new stdClass();
$user->name = 'mark'; $user->name = 'mark';
$user->pass = 'password123'; $user->pass = 'password123';
$user->email = 'what@legend.com'; $user->email = 'what@example.com';
$user->id = $DB->insert_record('auth_db_users', $user); $user->id = $DB->insert_record('auth_db_users', $user);
// Set the config to remove the suspension on the user. // Set the config to remove the suspension on the user.

View file

@ -296,7 +296,7 @@ class auth_ldap_plugin_testcase extends advanced_testcase {
'lastnamephonetic' => '最後のお名前のテスト一号', 'lastnamephonetic' => '最後のお名前のテスト一号',
'firstnamephonetic' => 'お名前のテスト一号', 'firstnamephonetic' => 'お名前のテスト一号',
'alternatename' => 'Alternate Name User Test 1', 'alternatename' => 'Alternate Name User Test 1',
'email' => 'usersignuptest1@email.com', 'email' => 'usersignuptest1@example.com',
'description' => 'This is a description for user 1', 'description' => 'This is a description for user 1',
'city' => 'Perth', 'city' => 'Perth',
'country' => 'au', 'country' => 'au',

View file

@ -16,7 +16,7 @@ Feature: Authentication
Scenario: Log in as an existing admin user filling the form Scenario: Log in as an existing admin user filling the form
Given the following "users" exist: Given the following "users" exist:
| username | password | firstname | lastname | email | | username | password | firstname | lastname | email |
| testuser | testuser | Test | User | moodle@moodlemoodle.com | | testuser | testuser | Test | User | moodle@example.com |
And I am on homepage And I am on homepage
When I follow "Log in" When I follow "Log in"
And I set the field "Username" to "testuser" And I set the field "Username" to "testuser"
@ -27,7 +27,7 @@ Feature: Authentication
Scenario: Log in as an unexisting user filling the form Scenario: Log in as an unexisting user filling the form
Given the following "users" exist: Given the following "users" exist:
| username | password | firstname | lastname | email | | username | password | firstname | lastname | email |
| testuser | testuser | Test | User | moodle@moodlemoodle.com | | testuser | testuser | Test | User | moodle@example.com |
And I am on homepage And I am on homepage
When I follow "Log in" When I follow "Log in"
And I set the field "Username" to "testuser" And I set the field "Username" to "testuser"

View file

@ -10,8 +10,8 @@ Feature: availability_grade
| Course 1 | C1 | topics | 1 | | Course 1 | C1 | topics | 1 |
And the following "users" exist: And the following "users" exist:
| username | email | | username | email |
| teacher1 | t@example.org | | teacher1 | t@example.com |
| student1 | s@example.org | | student1 | s@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |
@ -101,8 +101,8 @@ Feature: availability_grade
# Give the assignment 40%. # Give the assignment 40%.
And I follow "A1" And I follow "A1"
And I follow "View/grade all submissions" And I follow "View/grade all submissions"
# Pick the grade link in the row that has s@example.org in it. # Pick the grade link in the row that has s@example.com in it.
And I click on "//a[contains(@href, 'action=grade') and ancestor::tr/td[normalize-space(.) = 's@example.org']]/img" "xpath_element" And I click on "//a[contains(@href, 'action=grade') and ancestor::tr/td[normalize-space(.) = 's@example.com']]/img" "xpath_element"
And I set the field "Grade out of 100" to "40" And I set the field "Grade out of 100" to "40"
And I click on "Save changes" "button" And I click on "Save changes" "button"

View file

@ -10,8 +10,8 @@ Feature: availability_profile
| Course 1 | C1 | topics | 1 | | Course 1 | C1 | topics | 1 |
And the following "users" exist: And the following "users" exist:
| username | email | | username | email |
| teacher1 | t@example.org | | teacher1 | t@example.com |
| student1 | s@example.org | | student1 | s@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |
@ -36,7 +36,7 @@ Feature: availability_profile
And I click on "Add restriction..." "button" And I click on "Add restriction..." "button"
And I click on "User profile" "button" And I click on "User profile" "button"
And I set the field "User profile field" to "Email address" And I set the field "User profile field" to "Email address"
And I set the field "Value to compare against" to "s@example.org" And I set the field "Value to compare against" to "s@example.com"
And I click on ".availability-item .availability-eye img" "css_element" And I click on ".availability-item .availability-eye img" "css_element"
And I click on "Save and return to course" "button" And I click on "Save and return to course" "button"
@ -50,7 +50,7 @@ Feature: availability_profile
And I click on "Add restriction..." "button" And I click on "Add restriction..." "button"
And I click on "User profile" "button" And I click on "User profile" "button"
And I set the field "User profile field" to "Email address" And I set the field "User profile field" to "Email address"
And I set the field "Value to compare against" to "q@example.org" And I set the field "Value to compare against" to "q@example.com"
And I click on ".availability-item .availability-eye img" "css_element" And I click on ".availability-item .availability-eye img" "css_element"
And I click on "Save and return to course" "button" And I click on "Save and return to course" "button"
@ -76,7 +76,7 @@ Feature: availability_profile
# Set field value for user. # Set field value for user.
And I navigate to "Browse list of users" node in "Site administration > Users > Accounts" And I navigate to "Browse list of users" node in "Site administration > Users > Accounts"
And I click on "a[title=Edit]" "css_element" in the "s@example.org" "table_row" And I click on "a[title=Edit]" "css_element" in the "s@example.com" "table_row"
And I expand all fieldsets And I expand all fieldsets
And I set the field "Super field" to "Bananaman" And I set the field "Super field" to "Bananaman"
And I click on "Update profile" "button" And I click on "Update profile" "button"

View file

@ -74,7 +74,7 @@ Feature: display_availability
And I press "Add restriction..." And I press "Add restriction..."
And I click on "User profile" "button" in the "Add restriction..." "dialogue" And I click on "User profile" "button" in the "Add restriction..." "dialogue"
And I set the field "User profile field" to "Email address" And I set the field "User profile field" to "Email address"
And I set the field "Value to compare against" to "email@example.org" And I set the field "Value to compare against" to "email@example.com"
And I set the field "Method of comparison" to "is equal to" And I set the field "Method of comparison" to "is equal to"
And I press "Save and return to course" And I press "Save and return to course"

View file

@ -299,7 +299,7 @@
<IDNUMBER>891220979</IDNUMBER> <IDNUMBER>891220979</IDNUMBER>
<FIRSTNAME>Admin</FIRSTNAME> <FIRSTNAME>Admin</FIRSTNAME>
<LASTNAME>User</LASTNAME> <LASTNAME>User</LASTNAME>
<EMAIL>adamzap@gmail.com</EMAIL> <EMAIL>adamzap@example.com</EMAIL>
<EMAILSTOP>0</EMAILSTOP> <EMAILSTOP>0</EMAILSTOP>
<ICQ></ICQ> <ICQ></ICQ>
<SKYPE></SKYPE> <SKYPE></SKYPE>
@ -368,7 +368,7 @@
<IDNUMBER>891111111</IDNUMBER> <IDNUMBER>891111111</IDNUMBER>
<FIRSTNAME>Adam</FIRSTNAME> <FIRSTNAME>Adam</FIRSTNAME>
<LASTNAME>Zapletal</LASTNAME> <LASTNAME>Zapletal</LASTNAME>
<EMAIL>azaple1@lsu.edu</EMAIL> <EMAIL>azaple1@example.com</EMAIL>
<EMAILSTOP>0</EMAILSTOP> <EMAILSTOP>0</EMAILSTOP>
<ICQ></ICQ> <ICQ></ICQ>
<SKYPE></SKYPE> <SKYPE></SKYPE>
@ -481,7 +481,7 @@
<IDNUMBER></IDNUMBER> <IDNUMBER></IDNUMBER>
<FIRSTNAME>Philip</FIRSTNAME> <FIRSTNAME>Philip</FIRSTNAME>
<LASTNAME>Cali</LASTNAME> <LASTNAME>Cali</LASTNAME>
<EMAIL>pcali1@lsu.edu</EMAIL> <EMAIL>pcali1@example.com</EMAIL>
<EMAILSTOP>0</EMAILSTOP> <EMAILSTOP>0</EMAILSTOP>
<ICQ></ICQ> <ICQ></ICQ>
<SKYPE></SKYPE> <SKYPE></SKYPE>

View file

@ -11,7 +11,7 @@ Feature: Duplicate activities
| Course 1 | C1 | 0 | | Course 1 | C1 | 0 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -12,7 +12,7 @@ Feature: Import course's contents into another course
| Course 2 | C2 | 0 | | Course 2 | C2 | 0 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -14,10 +14,10 @@ Feature: Add badges to the system
And I expand "Badges" node And I expand "Badges" node
And I follow "Badges settings" And I follow "Badges settings"
And I set the field "Default badge issuer name" to "Test Badge Site" And I set the field "Default badge issuer name" to "Test Badge Site"
And I set the field "Default badge issuer contact details" to "testuser@test-badge-site.com" And I set the field "Default badge issuer contact details" to "testuser@example.com"
And I press "Save changes" And I press "Save changes"
When I follow "Add a new badge" When I follow "Add a new badge"
Then the field "issuercontact" matches value "testuser@test-badge-site.com" Then the field "issuercontact" matches value "testuser@example.com"
And the field "issuername" matches value "Test Badge Site" And the field "issuername" matches value "Test Badge Site"
@javascript @javascript
@ -35,7 +35,7 @@ Feature: Add badges to the system
| Name | Test Badge | | Name | Test Badge |
| Description | Test badge description | | Description | Test badge description |
| issuername | Test Badge Site | | issuername | Test Badge Site |
| issuercontact | testuser@test-badge-site.com | | issuercontact | testuser@example.com |
And I upload "badges/tests/behat/badge.png" file to "Image" filemanager And I upload "badges/tests/behat/badge.png" file to "Image" filemanager
When I press "Create badge" When I press "Create badge"
Then I should see "Edit details" Then I should see "Edit details"

View file

@ -12,7 +12,7 @@ Feature: Award badges
| Name | Profile Badge | | Name | Profile Badge |
| Description | Test badge description | | Description | Test badge description |
| issuername | Test Badge Site | | issuername | Test Badge Site |
| issuercontact | testuser@test-badge-site.com | | issuercontact | testuser@example.com |
And I upload "badges/tests/behat/badge.png" file to "Image" filemanager And I upload "badges/tests/behat/badge.png" file to "Image" filemanager
And I press "Create badge" And I press "Create badge"
And I set the field "type" to "Profile completion" And I set the field "type" to "Profile completion"
@ -39,8 +39,8 @@ Feature: Award badges
Scenario: Award site badge Scenario: Award site badge
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher | teacher | 1 | teacher1@asd.com | | teacher | teacher | 1 | teacher1@example.com |
| student | student | 1 | student1@asd.com | | student | student | 1 | student1@example.com |
And I log in as "admin" And I log in as "admin"
And I navigate to "Add a new badge" node in "Site administration > Badges" And I navigate to "Add a new badge" node in "Site administration > Badges"
And I set the following fields to these values: And I set the following fields to these values:
@ -56,9 +56,9 @@ Feature: Award badges
And I press "Continue" And I press "Continue"
And I follow "Recipients (0)" And I follow "Recipients (0)"
And I press "Award badge" And I press "Award badge"
And I set the field "potentialrecipients[]" to "teacher 1 (teacher1@asd.com)" And I set the field "potentialrecipients[]" to "teacher 1 (teacher1@example.com)"
And I press "Award badge" And I press "Award badge"
And I set the field "potentialrecipients[]" to "student 1 (student1@asd.com)" And I set the field "potentialrecipients[]" to "student 1 (student1@example.com)"
And I press "Award badge" And I press "Award badge"
When I follow "Site Badge" When I follow "Site Badge"
Then I should see "Recipients (2)" Then I should see "Recipients (2)"
@ -72,9 +72,9 @@ Feature: Award badges
Scenario: Award course badge Scenario: Award course badge
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
| student2 | Student | 2 | student2@asd.com | | student2 | Student | 2 | student2@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | category | groupmode | | fullname | shortname | category | groupmode |
| Course 1 | C1 | 0 | 1 | | Course 1 | C1 | 0 | 1 |
@ -100,9 +100,9 @@ Feature: Award badges
And I press "Continue" And I press "Continue"
And I follow "Recipients (0)" And I follow "Recipients (0)"
And I press "Award badge" And I press "Award badge"
And I set the field "potentialrecipients[]" to "Student 2 (student2@asd.com)" And I set the field "potentialrecipients[]" to "Student 2 (student2@example.com)"
And I press "Award badge" And I press "Award badge"
And I set the field "potentialrecipients[]" to "Student 1 (student1@asd.com)" And I set the field "potentialrecipients[]" to "Student 1 (student1@example.com)"
When I press "Award badge" When I press "Award badge"
And I follow "Course Badge" And I follow "Course Badge"
Then I should see "Recipients (2)" Then I should see "Recipients (2)"
@ -120,8 +120,8 @@ Feature: Award badges
| Course 1 | C1 | 0 | | Course 1 | C1 | 0 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | Frist | teacher1@asd.com | | teacher1 | Teacher | Frist | teacher1@example.com |
| student1 | Student | First | student1@asd.com | | student1 | Student | First | student1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |
@ -172,8 +172,8 @@ Feature: Award badges
| Course 1 | C1 | 0 | | Course 1 | C1 | 0 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | Frist | teacher1@asd.com | | teacher1 | Teacher | Frist | teacher1@example.com |
| student1 | Student | First | student1@asd.com | | student1 | Student | First | student1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -10,8 +10,8 @@ Feature: Add a comment to the comments block
| Course 1 | C1 | 0 | | Course 1 | C1 | 0 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | Frist | teacher1@asd.com | | teacher1 | Teacher | Frist | teacher1@example.com |
| student1 | Student | First | student1@asd.com | | student1 | Student | First | student1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -11,8 +11,8 @@ Feature: Delete comment block messages
| Course 1 | C1 | 0 | | Course 1 | C1 | 0 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | First | teacher1@asd.com | | teacher1 | Teacher | First | teacher1@example.com |
| student1 | Student | First | student1@asd.com | | student1 | Student | First | student1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -10,8 +10,8 @@ Feature: Course summary block used in a course
| Course 1 | C101 | Proved the course summary block works! |0 | | Course 1 | C101 | Proved the course summary block works! |0 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| student1 | Sam | Student | student1@asd.com | | student1 | Sam | Student | student1@example.com |
| teacher1 | Teacher | One | teacher1@asd.com | | teacher1 | Teacher | One | teacher1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| student1 | C101 | student | | student1 | C101 | student |

View file

@ -10,8 +10,8 @@ Feature: Random glossary entry block is used in a course
| Course 1 | C1 | | Course 1 | C1 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| student1 | Sam1 | Student1 | student1@test.com | | student1 | Sam1 | Student1 | student1@example.com |
| teacher1 | Terry1 | Teacher1 | teacher1@test.com | | teacher1 | Terry1 | Teacher1 | teacher1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| student1 | C1 | student | | student1 | C1 | student |

View file

@ -7,8 +7,8 @@ Feature: HTML blocks in a course
Scenario: Adding HTML block in a course Scenario: Adding HTML block in a course
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Terry1 | Teacher1 | teacher@asd.com | | teacher1 | Terry1 | Teacher1 | teacher@example.com |
| student1 | Sam1 | Student1 | student1@asd.com | | student1 | Sam1 | Student1 | student1@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | | fullname | shortname |
| Course 1 | C1 | | Course 1 | C1 |

View file

@ -7,7 +7,7 @@ Feature: Login from a block
Background: Background:
Given the following "users" exist: Given the following "users" exist:
| username | password | firstname | lastname | email | | username | password | firstname | lastname | email |
| testuser | testpass | Test | User | student1@asd.com | | testuser | testpass | Test | User | student1@example.com |
And I log in as "admin" And I log in as "admin"
And I navigate to "Turn editing on" node in "Front page settings" And I navigate to "Turn editing on" node in "Front page settings"
And I add the "Login" block And I add the "Login" block

View file

@ -7,8 +7,8 @@ Feature: Expand the courses nodes within the navigation block
Background: Background:
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@local.host | | teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@local.host | | student1 | Student | 1 | student1@example.com |
And the following "categories" exist: And the following "categories" exist:
| name | category | idnumber | visible | | name | category | idnumber | visible |
| cat1 | 0 | cat1 | 1 | | cat1 | 0 | cat1 | 1 |

View file

@ -7,7 +7,7 @@ Feature: View my courses in navigation block
Background: Background:
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
And the following "categories" exist: And the following "categories" exist:
| name | category | idnumber | | name | category | idnumber |
| cat1 | 0 | cat1 | | cat1 | 0 | cat1 |

View file

@ -8,7 +8,7 @@ Feature: Latest news block displays the course latest news
Scenario: Latest course news are displayed and can be configured Scenario: Latest course news are displayed and can be configured
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
And I log in as "admin" And I log in as "admin"
And I create a course with: And I create a course with:
| Course full name | Course 1 | | Course full name | Course 1 |

View file

@ -10,7 +10,7 @@ Feature: People Block used in a course
| Course 1 | C101 | 0 | | Course 1 | C101 | 0 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| student1 | Sam | Student | student1@asd.com | | student1 | Sam | Student | student1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| student1 | C101 | student | | student1 | C101 | student |

View file

@ -7,7 +7,7 @@ Feature: People Block used on frontpage
Background: Background:
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| student1 | Sam | Student | student1@asd.com | | student1 | Sam | Student | student1@example.com |
And I log in as "admin" And I log in as "admin"
And I navigate to "Turn editing on" node in "Front page settings" And I navigate to "Turn editing on" node in "Front page settings"
And I add the "People" block And I add the "People" block

View file

@ -10,11 +10,11 @@ Feature: View structural changes in recent activity block
| Course 1 | C1 | 0 | | Course 1 | C1 | 0 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Terry1 | Teacher1 | teacher1@asd.com | | teacher1 | Terry1 | Teacher1 | teacher1@example.com |
| assistant1 | Terry2 | Teacher2 | teacher2@asd.com | | assistant1 | Terry2 | Teacher2 | teacher2@example.com |
| student1 | Sam1 | Student1 | student1@asd.com | | student1 | Sam1 | Student1 | student1@example.com |
| student2 | Sam2 | Student2 | student2@asd.com | | student2 | Sam2 | Student2 | student2@example.com |
| student3 | Sam3 | Student3 | student3@asd.com | | student3 | Sam3 | Student3 | student3@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -7,8 +7,8 @@ Feature: Add blocks
Background: Background:
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
| student2 | Student | 2 | student2@asd.com | | student2 | Student | 2 | student2@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | format | | fullname | shortname | format |
| Course 1 | C1 | topics | | Course 1 | C1 | topics |

View file

@ -10,7 +10,7 @@ Feature: Add and configure blocks throughout the site
| Course 1 | C1 | 0 | | Course 1 | C1 | 0 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| manager1 | Manager | 1 | manager1@asd.com | | manager1 | Manager | 1 | manager1@example.com |
And the following "system role assigns" exist: And the following "system role assigns" exist:
| user | course | role | | user | course | role |
| manager1 | Acceptance test site | manager | | manager1 | Acceptance test site | manager |
@ -36,7 +36,7 @@ Feature: Add and configure blocks throughout the site
Scenario: My home does not allow assignation of roles on blocks Scenario: My home does not allow assignation of roles on blocks
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| manager1 | Manager | 1 | manager1@asd.com | | manager1 | Manager | 1 | manager1@example.com |
And I log in as "manager1" And I log in as "manager1"
And I click on "My home" "link" in the "Navigation" "block" And I click on "My home" "link" in the "Navigation" "block"
When I press "Customise this page" When I press "Customise this page"

View file

@ -10,7 +10,7 @@ Feature: Block appearances
| Course 1 | C1 | 0 | | Course 1 | C1 | 0 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | teacher | 1 | teacher1@asd.com | | teacher1 | teacher | 1 | teacher1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -7,7 +7,7 @@ Feature: Allowed blocks controls
Background: Background:
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | category | | fullname | shortname | category |
| Course 1 | C1 | 0 | | Course 1 | C1 | 0 |

View file

@ -7,8 +7,8 @@ Feature: Comment on a blog entry
Background: Background:
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| testuser | Test | User | moodle@moodlemoodle.com | | testuser | Test | User | moodle@example.com |
| testuser2 | Test2 | User2 | moodle2@moodlemoodle.com | | testuser2 | Test2 | User2 | moodle2@example.com |
And I log in as "testuser" And I log in as "testuser"
And I am on homepage And I am on homepage
And I expand "My profile" node And I expand "My profile" node

View file

@ -7,8 +7,8 @@ Feature: Perform basic calendar functionality
Background: Background:
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
| student2 | Student | 2 | student2@asd.com | | student2 | Student | 2 | student2@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | format | | fullname | shortname | format |
| Course 1 | C1 | topics | | Course 1 | C1 | topics |

View file

@ -7,10 +7,10 @@ Feature: Add cohorts of users
Background: Background:
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| user1 | First | User | first@user.com | | user1 | First | User | first@example.com |
| user2 | Second | User | second@user.com | | user2 | Second | User | second@example.com |
| user3 | Third | User | third@user.com | | user3 | Third | User | third@example.com |
| user4 | Forth | User | forth@user.com | | user4 | Forth | User | forth@example.com |
And I log in as "admin" And I log in as "admin"
And I navigate to "Cohorts" node in "Site administration > Users > Accounts" And I navigate to "Cohorts" node in "Site administration > Users > Accounts"
And I press "Add" And I press "Add"
@ -31,13 +31,13 @@ Feature: Add cohorts of users
@javascript @javascript
Scenario: Add users to a cohort selecting them from the system users list Scenario: Add users to a cohort selecting them from the system users list
When I add "First User (first@user.com)" user to "333" cohort members When I add "First User (first@example.com)" user to "333" cohort members
And I add "Second User (second@user.com)" user to "333" cohort members And I add "Second User (second@example.com)" user to "333" cohort members
Then I should see "2" in the "#cohorts" "css_element" Then I should see "2" in the "#cohorts" "css_element"
And I follow "Assign" And I follow "Assign"
And the "Current users" select box should contain "First User (first@user.com)" And the "Current users" select box should contain "First User (first@example.com)"
And the "Current users" select box should contain "Second User (second@user.com)" And the "Current users" select box should contain "Second User (second@example.com)"
And the "Current users" select box should not contain "Forth User (forth@user.com)" And the "Current users" select box should not contain "Forth User (forth@example.com)"
@javascript @javascript
Scenario: Add users to a cohort using a bulk user action Scenario: Add users to a cohort using a bulk user action
@ -53,6 +53,6 @@ Feature: Add cohorts of users
And I follow "Cohorts" And I follow "Cohorts"
Then I should see "2" in the "#cohorts" "css_element" Then I should see "2" in the "#cohorts" "css_element"
And I follow "Assign" And I follow "Assign"
And the "Current users" select box should contain "Third User (third@user.com)" And the "Current users" select box should contain "Third User (third@example.com)"
And the "Current users" select box should contain "Forth User (forth@user.com)" And the "Current users" select box should contain "Forth User (forth@example.com)"
And the "Current users" select box should not contain "First User (first@user.com)" And the "Current users" select box should not contain "First User (first@example.com)"

View file

@ -40,7 +40,7 @@ use Behat\Behat\Context\Step\Given as Given;
class behat_cohort extends behat_base { class behat_cohort extends behat_base {
/** /**
* Adds the user to the specified cohort. The user should be specified like "Firstname Lastname (user@email.com)". * Adds the user to the specified cohort. The user should be specified like "Firstname Lastname (user@example.com)".
* *
* @Given /^I add "(?P<user_fullname_string>(?:[^"]|\\")*)" user to "(?P<cohort_idnumber_string>(?:[^"]|\\")*)" cohort members$/ * @Given /^I add "(?P<user_fullname_string>(?:[^"]|\\")*)" user to "(?P<cohort_idnumber_string>(?:[^"]|\\")*)" cohort members$/
* @param string $user * @param string $user

View file

@ -11,8 +11,8 @@ Feature: Allow students to manually mark an activity as complete
| Course 1 | C1 | 0 | | Course 1 | C1 | 0 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | Frist | teacher1@asd.com | | teacher1 | Teacher | Frist | teacher1@example.com |
| student1 | Student | First | student1@asd.com | | student1 | Student | First | student1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -10,8 +10,8 @@ Feature: Restrict activity availability through date conditions
| Course 1 | C1 | 0 | | Course 1 | C1 | 0 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | Frist | teacher1@asd.com | | teacher1 | Teacher | Frist | teacher1@example.com |
| student1 | Student | First | student1@asd.com | | student1 | Student | First | student1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -11,8 +11,8 @@ Feature: Restrict activity availability through grade conditions
| Course 1 | C1 | 0 | | Course 1 | C1 | 0 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | Frist | teacher1@asd.com | | teacher1 | Teacher | Frist | teacher1@example.com |
| student1 | Student | First | student1@asd.com | | student1 | Student | First | student1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -10,8 +10,8 @@ Feature: Restrict sections availability through completion or grade conditions
| Course 1 | C1 | 0 | | Course 1 | C1 | 0 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | Frist | teacher1@asd.com | | teacher1 | Teacher | Frist | teacher1@example.com |
| student1 | Student | First | student1@asd.com | | student1 | Student | First | student1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -8,7 +8,7 @@ Feature: Open the edit menu when a block is docked
Scenario: Open the action menu with a block docked Scenario: Open the action menu with a block docked
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | format | | fullname | shortname | format |
| Course 1 | C1 | weeks | | Course 1 | C1 | weeks |

View file

@ -8,7 +8,7 @@ Feature: Toggle activities groups mode from the course page
Scenario: Groups mode toggle with javascript enabled Scenario: Groups mode toggle with javascript enabled
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | format | | fullname | shortname | format |
| Course 1 | C1 | topics | | Course 1 | C1 | topics |

View file

@ -8,8 +8,8 @@ Feature: Indent items on the course page
Scenario: Indent course items with Javascript enabled Scenario: Indent course items with Javascript enabled
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | format | | fullname | shortname | format |
| Course 1 | C1 | weeks | | Course 1 | C1 | weeks |

View file

@ -8,8 +8,8 @@ Feature: Toggle activities visibility from the course page
Scenario: Hide/Show toggle with javascript enabled Scenario: Hide/Show toggle with javascript enabled
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | format | | fullname | shortname | format |
| Course 1 | C1 | topics | | Course 1 | C1 | topics |
@ -44,7 +44,7 @@ Feature: Toggle activities visibility from the course page
Scenario: Activities can be shown and hidden inside a hidden section Scenario: Activities can be shown and hidden inside a hidden section
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | format | numsections | | fullname | shortname | format | numsections |
| Course 1 | C1 | topics | 2 | | Course 1 | C1 | topics | 2 |
@ -71,7 +71,7 @@ Feature: Toggle activities visibility from the course page
Scenario: Activities can be shown and hidden inside an orphaned section Scenario: Activities can be shown and hidden inside an orphaned section
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | format | numsections | | fullname | shortname | format | numsections |
| Course 1 | C1 | topics | 2 | | Course 1 | C1 | topics | 2 |

View file

@ -7,8 +7,8 @@ Feature: Add activities to courses
Background: Background:
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
| student2 | Student | 2 | student2@asd.com | | student2 | Student | 2 | student2@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | format | | fullname | shortname | format |
| Course 1 | C1 | topics | | Course 1 | C1 | topics |

View file

@ -19,7 +19,7 @@ Feature: Course activity controls works as expected
Scenario Outline: General activities course controls using topics and weeks formats, and paged mode and not paged mode works as expected Scenario Outline: General activities course controls using topics and weeks formats, and paged mode and not paged mode works as expected
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | format | coursedisplay | numsections | | fullname | shortname | format | coursedisplay | numsections |
| Course 1 | C1 | <courseformat> | <coursedisplay> | 5 | | Course 1 | C1 | <courseformat> | <coursedisplay> | 5 |
@ -99,7 +99,7 @@ Feature: Course activity controls works as expected
Scenario Outline: General activities course controls using topics and weeks formats, and paged mode and not paged mode works as expected Scenario Outline: General activities course controls using topics and weeks formats, and paged mode and not paged mode works as expected
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | format | coursedisplay | numsections | | fullname | shortname | format | coursedisplay | numsections |
| Course 1 | C1 | <courseformat> | <coursedisplay> | 5 | | Course 1 | C1 | <courseformat> | <coursedisplay> | 5 |

View file

@ -8,8 +8,8 @@ Feature: Managers can create courses
Scenario: Courses are created with the default forum and blocks Scenario: Courses are created with the default forum and blocks
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
And I log in as "admin" And I log in as "admin"
And I create a course with: And I create a course with:
| Course full name | Course 1 | | Course full name | Course 1 |

View file

@ -8,7 +8,7 @@ Feature: Edit course settings
Scenario: Edit course settings Scenario: Edit course settings
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | summary | format | | fullname | shortname | summary | format |
| Course 1 | C1 | <p>Course summary</p> | topics | | Course 1 | C1 | <p>Course summary</p> | topics |

View file

@ -7,7 +7,7 @@ Feature: Force group mode in a course
Background: Background:
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | category | | fullname | shortname | category |
| Course 1 | C1 | 0 | | Course 1 | C1 | 0 |

View file

@ -7,7 +7,7 @@ Feature: The maximum number of weeks/topics in a course can be configured
Background: Background:
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| manager1 | Manager | 1 | manager1@asd.com | | manager1 | Manager | 1 | manager1@example.com |
And the following "system role assigns" exist: And the following "system role assigns" exist:
| user | course | role | | user | course | role |
| manager1 | Acceptance test site | manager | | manager1 | Acceptance test site | manager |

View file

@ -7,7 +7,7 @@ Feature: Activities can be moved between sections
Background: Background:
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | format | coursedisplay | numsections | | fullname | shortname | format | coursedisplay | numsections |
| Course 1 | C1 | topics | 0 | 5 | | Course 1 | C1 | topics | 0 | 5 |

View file

@ -7,7 +7,7 @@ Feature: Sections can be moved
Background: Background:
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | format | coursedisplay | numsections | | fullname | shortname | format | coursedisplay | numsections |
| Course 1 | C1 | topics | 0 | 5 | | Course 1 | C1 | topics | 0 | 5 |

View file

@ -8,9 +8,9 @@ Feature: Rename roles within a course
Scenario: Rename roles within a course Scenario: Rename roles within a course
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| teacher2 | Teacher | 2 | teacher2@asd.com | | teacher2 | Teacher | 2 | teacher2@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | format | | fullname | shortname | format |
| Course 1 | C1 | topics | | Course 1 | C1 | topics |

View file

@ -7,7 +7,7 @@ Feature: Restrict activities availability
Background: Background:
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | category | format | | fullname | shortname | category | format |
| Course 1 | C1 | 0 | topics | | Course 1 | C1 | 0 | topics |

View file

@ -8,8 +8,8 @@ Feature: Topic's course sections highlighting
Scenario Outline: Highlight a topic's course section with course paged mode and without it Scenario Outline: Highlight a topic's course section with course paged mode and without it
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | format | coursedisplay | | fullname | shortname | format | coursedisplay |
| Course 1 | C1 | topics | <coursedisplay> | | Course 1 | C1 | topics | <coursedisplay> |

View file

@ -8,8 +8,8 @@ Feature: Show/hide course sections
Scenario: Show / hide section icon functions correctly Scenario: Show / hide section icon functions correctly
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | format | | fullname | shortname | format |
| Course 1 | C1 | topics | | Course 1 | C1 | topics |

View file

@ -7,7 +7,7 @@ Feature: View subfolders in a course in-line
Background: Background:
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | format | coursedisplay | numsections | | fullname | shortname | format | coursedisplay | numsections |
| Course 1 | C1 | topics | 0 | 5 | | Course 1 | C1 | topics | 0 | 5 |

View file

@ -468,7 +468,7 @@ class core_course_externallib_testcase extends externallib_advanced_testcase {
// Admin can delete a course. // Admin can delete a course.
$this->setAdminUser(); $this->setAdminUser();
// Validate_context() will fail as the email is not set by $this->setAdminUser(). // Validate_context() will fail as the email is not set by $this->setAdminUser().
$USER->email = 'emailtopass@contextvalidation.me'; $USER->email = 'emailtopass@example.com';
$course1 = self::getDataGenerator()->create_course(); $course1 = self::getDataGenerator()->create_course();
$course2 = self::getDataGenerator()->create_course(); $course2 = self::getDataGenerator()->create_course();
@ -1044,7 +1044,7 @@ class core_course_externallib_testcase extends externallib_advanced_testcase {
// Setup the user to run the operation (ugly hack because validate_context() will // Setup the user to run the operation (ugly hack because validate_context() will
// fail as the email is not set by $this->setAdminUser()). // fail as the email is not set by $this->setAdminUser()).
$this->setAdminUser(); $this->setAdminUser();
$USER->email = 'emailtopass@contextvalidation.me'; $USER->email = 'emailtopass@example.com';
// Import from course1 to course2. // Import from course1 to course2.
core_course_external::import_course($course1->id, $course2->id, 0); core_course_external::import_course($course1->id, $course2->id, 0);
@ -1094,7 +1094,7 @@ class core_course_externallib_testcase extends externallib_advanced_testcase {
// Setup the user to run the operation (ugly hack because validate_context() will // Setup the user to run the operation (ugly hack because validate_context() will
// fail as the email is not set by $this->setAdminUser()). // fail as the email is not set by $this->setAdminUser()).
$this->setAdminUser(); $this->setAdminUser();
$USER->email = 'emailtopass@contextvalidation.me'; $USER->email = 'emailtopass@example.com';
// Import from course1 to course2 without deleting content. // Import from course1 to course2 without deleting content.
core_course_external::import_course($course1->id, $course2->id, 0); core_course_external::import_course($course1->id, $course2->id, 0);
@ -1140,7 +1140,7 @@ class core_course_externallib_testcase extends externallib_advanced_testcase {
// Setup the user to run the operation (ugly hack because validate_context() will // Setup the user to run the operation (ugly hack because validate_context() will
// fail as the email is not set by $this->setAdminUser()). // fail as the email is not set by $this->setAdminUser()).
$this->setAdminUser(); $this->setAdminUser();
$USER->email = 'emailtopass@contextvalidation.me'; $USER->email = 'emailtopass@example.com';
// Import from course1 to course2 without deleting content, but excluding // Import from course1 to course2 without deleting content, but excluding
// activities. // activities.
@ -1185,7 +1185,7 @@ class core_course_externallib_testcase extends externallib_advanced_testcase {
// Setup the user to run the operation (ugly hack because validate_context() will // Setup the user to run the operation (ugly hack because validate_context() will
// fail as the email is not set by $this->setAdminUser()). // fail as the email is not set by $this->setAdminUser()).
$this->setAdminUser(); $this->setAdminUser();
$USER->email = 'emailtopass@contextvalidation.me'; $USER->email = 'emailtopass@example.com';
// Import from course1 to course2, deleting content. // Import from course1 to course2, deleting content.
core_course_external::import_course($course1->id, $course2->id, 1); core_course_external::import_course($course1->id, $course2->id, 1);

View file

@ -7,8 +7,8 @@ Feature: Guest users can auto-enrol themself in courses where guest access is al
Background: Background:
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | format | | fullname | shortname | format |
| Course 1 | C1 | topics | | Course 1 | C1 | topics |

View file

@ -97,7 +97,7 @@ class enrol_imsenterprise_testcase extends advanced_testcase {
$user1 = new StdClass(); $user1 = new StdClass();
$user1->username = 'u1'; $user1->username = 'u1';
$user1->email = 'u1@u1.org'; $user1->email = 'u1@example.com';
$user1->firstname = 'U'; $user1->firstname = 'U';
$user1->lastname = '1'; $user1->lastname = '1';

View file

@ -7,8 +7,8 @@ Feature: Users can auto-enrol themself in courses where self enrolment is allowe
Background: Background:
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | format | | fullname | shortname | format |
| Course 1 | C1 | topics | | Course 1 | C1 | topics |

View file

@ -191,7 +191,7 @@ class core_files_externallib_testcase extends advanced_testcase {
// Set the current user to be the administrator. // Set the current user to be the administrator.
$this->setAdminUser(); $this->setAdminUser();
$USER->email = 'test@moodle.com'; $USER->email = 'test@example.com';
// Create a course. // Create a course.
$course = $this->getDataGenerator()->create_course(); $course = $this->getDataGenerator()->create_course();

View file

@ -7,8 +7,8 @@ Feature: Rubrics can be created and edited
Background: Background:
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | format | | fullname | shortname | format |
| Course 1 | C1 | topics | | Course 1 | C1 | topics |

View file

@ -7,8 +7,8 @@ Feature: Publish rubrics as templates
Background: Background:
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| manager1 | Manager | 1 | manager1@asd.com | | manager1 | Manager | 1 | manager1@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | format | | fullname | shortname | format |
| Course 1 | C1 | topics | | Course 1 | C1 | topics |

View file

@ -7,7 +7,7 @@ Feature: Reuse my rubrics in other activities
Background: Background:
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | format | | fullname | shortname | format |
| Course 1 | C1 | topics | | Course 1 | C1 | topics |

View file

@ -10,8 +10,8 @@ Feature: We can use calculated grade totals
| Course 1 | C1 | 0 | 1 | | Course 1 | C1 | 0 | 1 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | idnumber | | username | firstname | lastname | email | idnumber |
| teacher1 | Teacher | 1 | teacher1@asd.com | t1 | | teacher1 | Teacher | 1 | teacher1@example.com | t1 |
| student1 | Student | 1 | student1@asd.com | s1 | | student1 | Student | 1 | student1@example.com | s1 |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -10,7 +10,7 @@ Feature: Grade letters can be overridden
| Course 1 | C1 | | Course 1 | C1 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | idnumber | | username | firstname | lastname | email | idnumber |
| teacher1 | Teacher | 1 | teacher1@asd.com | t1 | | teacher1 | Teacher | 1 | teacher1@example.com | t1 |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -21,12 +21,12 @@ Feature: View gradebook when scales are used
| Course 1 | C1 | | Course 1 | C1 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | idnumber | | username | firstname | lastname | email | idnumber |
| teacher1 | Teacher | 1 | teacher1@asd.com | t1 | | teacher1 | Teacher | 1 | teacher1@example.com | t1 |
| student1 | Student | 1 | student1@asd.com | s1 | | student1 | Student | 1 | student1@example.com | s1 |
| student2 | Student | 2 | student2@asd.com | s2 | | student2 | Student | 2 | student2@example.com | s2 |
| student3 | Student | 3 | student3@asd.com | s3 | | student3 | Student | 3 | student3@example.com | s3 |
| student4 | Student | 4 | student4@asd.com | s4 | | student4 | Student | 4 | student4@example.com | s4 |
| student5 | Student | 5 | student5@asd.com | s5 | | student5 | Student | 5 | student5@example.com | s5 |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -11,8 +11,8 @@ Feature: We can enter in grades and view reports from the gradebook
| Course 1 | C1 | topics | | Course 1 | C1 | topics |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -10,17 +10,17 @@ Feature: Automatic creation of groups
| Course 1 | C1 | 0 | | Course 1 | C1 | 0 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student0 | Student | 0 | student0@asd.com | | student0 | Student | 0 | student0@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
| student2 | Student | 2 | student2@asd.com | | student2 | Student | 2 | student2@example.com |
| student3 | Student | 3 | student3@asd.com | | student3 | Student | 3 | student3@example.com |
| student4 | Student | 4 | student4@asd.com | | student4 | Student | 4 | student4@example.com |
| student5 | Student | 5 | student5@asd.com | | student5 | Student | 5 | student5@example.com |
| student6 | Student | 6 | student6@asd.com | | student6 | Student | 6 | student6@example.com |
| student7 | Student | 7 | student7@asd.com | | student7 | Student | 7 | student7@example.com |
| student8 | Student | 8 | student8@asd.com | | student8 | Student | 8 | student8@example.com |
| student9 | Student | 9 | student9@asd.com | | student9 | Student | 9 | student9@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -40,7 +40,8 @@ use Behat\Mink\Exception\ElementNotFoundException as ElementNotFoundException;
class behat_groups extends behat_base { class behat_groups extends behat_base {
/** /**
* Add the specified user to the group. You should be in the groups page when running this step. The user should be specified like "Firstname Lastname (user@email.com)". * Add the specified user to the group. You should be in the groups page when running this step.
* The user should be specified like "Firstname Lastname (user@example.com)".
* *
* @Given /^I add "(?P<user_fullname_string>(?:[^"]|\\")*)" user to "(?P<group_name_string>(?:[^"]|\\")*)" group members$/ * @Given /^I add "(?P<user_fullname_string>(?:[^"]|\\")*)" user to "(?P<group_name_string>(?:[^"]|\\")*)" group members$/
* @throws ElementNotFoundException Thrown by behat_base::find * @throws ElementNotFoundException Thrown by behat_base::find

View file

@ -11,11 +11,11 @@ Feature: Organize students into groups
| Course 1 | C1 | 0 | 1 | | Course 1 | C1 | 0 | 1 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student0 | Student | 0 | student0@asd.com | | student0 | Student | 0 | student0@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
| student2 | Student | 2 | student2@asd.com | | student2 | Student | 2 | student2@example.com |
| student3 | Student | 3 | student3@asd.com | | student3 | Student | 3 | student3@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |
@ -35,10 +35,10 @@ Feature: Organize students into groups
And I set the following fields to these values: And I set the following fields to these values:
| Group name | Group 2 | | Group name | Group 2 |
And I press "Save changes" And I press "Save changes"
When I add "Student 0 (student0@asd.com)" user to "Group 1" group members When I add "Student 0 (student0@example.com)" user to "Group 1" group members
And I add "Student 1 (student1@asd.com)" user to "Group 1" group members And I add "Student 1 (student1@example.com)" user to "Group 1" group members
And I add "Student 2 (student2@asd.com)" user to "Group 2" group members And I add "Student 2 (student2@example.com)" user to "Group 2" group members
And I add "Student 3 (student3@asd.com)" user to "Group 2" group members And I add "Student 3 (student3@example.com)" user to "Group 2" group members
Then I set the field "groups" to "Group 1 (2)" Then I set the field "groups" to "Group 1 (2)"
And the "members" select box should contain "Student 0" And the "members" select box should contain "Student 0"
And the "members" select box should contain "Student 1" And the "members" select box should contain "Student 1"
@ -64,7 +64,7 @@ Feature: Organize students into groups
| Course 1 | C1 | 0 | 1 | | Course 1 | C1 | 0 | 1 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -10,7 +10,7 @@ Feature: Automatic deletion of groups and groupings
| Course 1 | C1 | topics | | Course 1 | C1 | topics |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -10,7 +10,7 @@ Feature: Importing of groups and groupings
| Course 1 | C1 | 0 | | Course 1 | C1 | 0 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -10,7 +10,7 @@ Feature: Uniqueness of Group ID number
| Course 1 | C1 | 0 | | Course 1 | C1 | 0 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -10,7 +10,7 @@ Feature: Automatic updating of groups and groupings
| Course 1 | C1 | topics | | Course 1 | C1 | topics |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -94,7 +94,7 @@ class behat_util extends testing_util {
// Update admin user info. // Update admin user info.
$user = $DB->get_record('user', array('username' => 'admin')); $user = $DB->get_record('user', array('username' => 'admin'));
$user->email = 'moodle@moodlemoodle.com'; $user->email = 'moodle@example.com';
$user->firstname = 'Admin'; $user->firstname = 'Admin';
$user->lastname = 'User'; $user->lastname = 'User';
$user->city = 'Perth'; $user->city = 'Perth';

View file

@ -56,7 +56,7 @@ class core_datalib_testcase extends advanced_testcase {
'idnumber' => 'idnumbertest1', 'idnumber' => 'idnumbertest1',
'firstname' => 'First Name User Test 1', 'firstname' => 'First Name User Test 1',
'lastname' => 'Last Name User Test 1', 'lastname' => 'Last Name User Test 1',
'email' => 'usertest1@email.com', 'email' => 'usertest1@example.com',
'address' => '2 Test Street Perth 6000 WA', 'address' => '2 Test Street Perth 6000 WA',
'phone1' => '01010101010', 'phone1' => '01010101010',
'phone2' => '02020203', 'phone2' => '02020203',
@ -79,7 +79,7 @@ class core_datalib_testcase extends advanced_testcase {
'idnumber' => 'idnumbertest2', 'idnumber' => 'idnumbertest2',
'firstname' => 'First Name User Test 2', 'firstname' => 'First Name User Test 2',
'lastname' => 'Last Name User Test 2', 'lastname' => 'Last Name User Test 2',
'email' => 'usertest2@email.com', 'email' => 'usertest2@example.com',
'address' => '222 Test Street Perth 6000 WA', 'address' => '222 Test Street Perth 6000 WA',
'phone1' => '01010101010', 'phone1' => '01010101010',
'phone2' => '02020203', 'phone2' => '02020203',

View file

@ -7,7 +7,7 @@ BEGIN:VEVENT
DTSTART:20141028T213000Z DTSTART:20141028T213000Z
DTEND:20141028T223000Z DTEND:20141028T223000Z
DTSTAMP:20141028T211302Z DTSTAMP:20141028T211302Z
ORGANIZER;CN=John Smith:mailto:john.smith@gmail.com ORGANIZER;CN=John Smith:mailto:john.smith@example.com
UID:hjlv3v1lcerpi629s5gpfuijk0@google.com UID:hjlv3v1lcerpi629s5gpfuijk0@google.com
CREATED:20141028T210927Z CREATED:20141028T210927Z
DESCRIPTION:Lorem ipsum dolor sit amet\, consectetur adipisicing elit. DESCRIPTION:Lorem ipsum dolor sit amet\, consectetur adipisicing elit.

View file

@ -1,3 +1,3 @@
username,password,firstname,lastname,email,course1,group1 username,password,firstname,lastname,email,course1,group1
jonest,verysecret,Tom,Jones,jonest@someplace.edu,math102,Section 1 jonest,verysecret,Tom,Jones,jonest@example.com,math102,Section 1
reznor,somesecret,Trent,Reznor,reznor@someplace.edu,math102,Section 3 reznor,somesecret,Trent,Reznor,reznor@example.com,math102,Section 3

1 username password firstname lastname email course1 group1
2 jonest verysecret Tom Jones jonest@someplace.edu jonest@example.com math102 Section 1
3 reznor somesecret Trent Reznor reznor@someplace.edu reznor@example.com math102 Section 3

View file

@ -64,8 +64,8 @@ class core_ldaplib_testcase extends advanced_testcase {
'expected' => 'James\\20\\22Jim\22\\20\\3d\\20Smith\\2c\\20III', 'expected' => 'James\\20\\22Jim\22\\20\\3d\\20Smith\\2c\\20III',
), ),
array ( array (
'test' => ' <jsmith@test.local> ', 'test' => ' <jsmith@example.com> ',
'expected' => '\\20\\20\\3cjsmith@test.local\\3e\\20', 'expected' => '\\20\\20\\3cjsmith@example.com\\3e\\20',
), ),
); );
@ -149,12 +149,12 @@ class core_ldaplib_testcase extends advanced_testcase {
'expected' => 'James "Jim" = Smith, III', 'expected' => 'James "Jim" = Smith, III',
), ),
array ( array (
'test' => '\\20\\20\\3cjsmith@test.local\\3e\\20', 'test' => '\\20\\20\\3cjsmith@example.com\\3e\\20',
'expected' => ' <jsmith@test.local> ', 'expected' => ' <jsmith@example.com> ',
), ),
array ( array (
'test' => '\\ \\<jsmith@test.local\\>\\ ', 'test' => '\\ \\<jsmith@example.com\\>\\ ',
'expected' => ' <jsmith@test.local> ', 'expected' => ' <jsmith@example.com> ',
), ),
array ( array (
'test' => 'Lu\\C4\\8Di\\C4\\87', 'test' => 'Lu\\C4\\8Di\\C4\\87',

View file

@ -2724,7 +2724,7 @@ class core_moodlelib_testcase extends advanced_testcase {
$userinfo->authormiddlename = ''; $userinfo->authormiddlename = '';
$userinfo->authorpicture = 23; $userinfo->authorpicture = 23;
$userinfo->authorimagealt = 'Michael Jordan draining another basket.'; $userinfo->authorimagealt = 'Michael Jordan draining another basket.';
$userinfo->authoremail = 'test@testing.net'; $userinfo->authoremail = 'test@example.com';
// Return an object with user picture information. // Return an object with user picture information.
@ -2740,7 +2740,7 @@ class core_moodlelib_testcase extends advanced_testcase {
$expectedarray->lastnamephonetic = 'カンベッル'; $expectedarray->lastnamephonetic = 'カンベッル';
$expectedarray->middlename = ''; $expectedarray->middlename = '';
$expectedarray->alternatename = ''; $expectedarray->alternatename = '';
$expectedarray->email = 'test@testing.net'; $expectedarray->email = 'test@example.com';
$expectedarray->picture = 23; $expectedarray->picture = 23;
$expectedarray->imagealt = 'Michael Jordan draining another basket.'; $expectedarray->imagealt = 'Michael Jordan draining another basket.';
$this->assertEquals($user, $expectedarray); $this->assertEquals($user, $expectedarray);

View file

@ -72,7 +72,7 @@ class core_user_testcase extends advanced_testcase {
// When supportemail is set. // When supportemail is set.
core_user::reset_internal_users(); core_user::reset_internal_users();
$CFG->supportemail = 'test@support.moodle.test'; $CFG->supportemail = 'test@example.com';
$supportuser = core_user::get_support_user(); $supportuser = core_user::get_support_user();
$this->assertEquals(core_user::SUPPORT_USER, $supportuser->id); $this->assertEquals(core_user::SUPPORT_USER, $supportuser->id);
$this->assertFalse(core_user::is_real_user($supportuser->id)); $this->assertFalse(core_user::is_real_user($supportuser->id));

View file

@ -8,8 +8,8 @@ Feature: Block users from contacting me
Scenario: Block users from contacting me with Javascript enabled Scenario: Block users from contacting me with Javascript enabled
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| user1 | User | One | one@asd.com | | user1 | User | One | one@example.com |
| user2 | User | Two | two@asd.com | | user2 | User | Two | two@example.com |
And I log in as "user1" And I log in as "user1"
And I expand "My profile" node And I expand "My profile" node
And I follow "Messages" And I follow "Messages"

View file

@ -7,8 +7,8 @@ Feature: Message history displays correctly
Background: Background:
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| user1 | User | One | one@asd.com | | user1 | User | One | one@example.com |
| user2 | User | Two | two@asd.com | | user2 | User | Two | two@example.com |
And I log in as "user1" And I log in as "user1"
And I send "Message 1 from user1 to user2" message to "User Two" user And I send "Message 1 from user1 to user2" message to "User Two" user
And I send "Message 2 from user1 to user2" message to "User Two" user And I send "Message 2 from user1 to user2" message to "User Two" user

View file

@ -7,8 +7,8 @@ Feature: Manage contacts
Background: Background:
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| user1 | User | One | one@asd.com | | user1 | User | One | one@example.com |
| user2 | User | Two | two@asd.com | | user2 | User | Two | two@example.com |
And I log in as "user1" And I log in as "user1"
And I send "Message 1 from user1 to user2" message to "User Two" user And I send "Message 1 from user1 to user2" message to "User Two" user
And I send "Message 2 from user1 to user2" message to "User Two" user And I send "Message 2 from user1 to user2" message to "User Two" user

View file

@ -8,10 +8,10 @@ Feature: An user can message course participants
Scenario: An user can message multiple course participants including him/her self Scenario: An user can message multiple course participants including him/her self
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
| student2 | Student | 2 | student2@asd.com | | student2 | Student | 2 | student2@example.com |
| student3 | Student | 3 | student3@asd.com | | student3 | Student | 3 | student3@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | format | | fullname | shortname | format |
| Course 1 | C1 | topics | | Course 1 | C1 | topics |

View file

@ -7,8 +7,8 @@ Feature: Users can search their message history
Background: Background:
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| user1 | User | One | one@asd.com | | user1 | User | One | one@example.com |
| user2 | User | Two | two@asd.com | | user2 | User | Two | two@example.com |
And I log in as "user1" And I log in as "user1"
When I send "Give me your biscuits" message to "User Two" user When I send "Give me your biscuits" message to "User Two" user
And I expand "My profile" node And I expand "My profile" node

View file

@ -12,8 +12,8 @@ Feature: In an assignment, teacher can annotate PDF files during grading
| Course 1 | C1 | 0 | 1 | | Course 1 | C1 | 0 | 1 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |
@ -75,11 +75,11 @@ Feature: In an assignment, teacher can annotate PDF files during grading
| Course 1 | C1 | 0 | 1 | | Course 1 | C1 | 0 | 1 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
| student2 | Student | 2 | student2@asd.com | | student2 | Student | 2 | student2@example.com |
| student3 | Student | 3 | student3@asd.com | | student3 | Student | 3 | student3@example.com |
| student4 | Student | 4 | student4@asd.com | | student4 | Student | 4 | student4@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -11,8 +11,8 @@ Feature: In an assignment, students start a new attempt based on their previous
| Course 1 | C1 | 0 | 1 | | Course 1 | C1 | 0 | 1 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -11,8 +11,8 @@ Feature: In an assignment, teachers can edit a students submission inline
| Course 1 | C1 | 0 | 1 | | Course 1 | C1 | 0 | 1 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -11,9 +11,9 @@ Feature: In an assignment, teachers can edit feedback for a students previous su
| Course 1 | C1 | 0 | 1 | | Course 1 | C1 | 0 | 1 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
| student2 | Student | 2 | student2@asd.com | | student2 | Student | 2 | student2@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -11,8 +11,8 @@ Feature: In an assignment, students can upload files for assessment
| Course 1 | C1 | 0 | 1 | | Course 1 | C1 | 0 | 1 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -11,10 +11,10 @@ Feature: In an assignment, teachers can filter displayed submissions by assigned
| Course 1 | C1 | 0 | 1 | | Course 1 | C1 | 0 | 1 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
| student2 | Student | 2 | student2@asd.com | | student2 | Student | 2 | student2@example.com |
| marker1 | Marker | 1 | marker1@asd.com | | marker1 | Marker | 1 | marker1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -10,8 +10,8 @@ Feature: View the grading status of an assignment
| Course 1 | C1 | 0 | 1 | | Course 1 | C1 | 0 | 1 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -11,11 +11,11 @@ Feature: Group assignment submissions
| Course 1 | C1 | 0 | 1 | | Course 1 | C1 | 0 | 1 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student0 | Student | 0 | student0@asd.com | | student0 | Student | 0 | student0@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
| student2 | Student | 2 | student2@asd.com | | student2 | Student | 2 | student2@example.com |
| student3 | Student | 3 | student3@asd.com | | student3 | Student | 3 | student3@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |
@ -50,8 +50,8 @@ Feature: Group assignment submissions
And I press "Save changes" And I press "Save changes"
And I expand "Users" node And I expand "Users" node
And I follow "Groups" And I follow "Groups"
And I add "Student 0 (student0@asd.com)" user to "Group 1" group members And I add "Student 0 (student0@example.com)" user to "Group 1" group members
And I add "Student 1 (student1@asd.com)" user to "Group 1" group members And I add "Student 1 (student1@example.com)" user to "Group 1" group members
And I follow "Course 1" And I follow "Course 1"
And I follow "Test assignment name" And I follow "Test assignment name"
And I follow "View/grade all submissions" And I follow "View/grade all submissions"
@ -71,11 +71,11 @@ Feature: Group assignment submissions
| Course 1 | C1 | 0 | 1 | | Course 1 | C1 | 0 | 1 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
| student2 | Student | 2 | student2@asd.com | | student2 | Student | 2 | student2@example.com |
| student3 | Student | 3 | student3@asd.com | | student3 | Student | 3 | student3@example.com |
| student4 | Student | 4 | student4@asd.com | | student4 | Student | 4 | student4@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -11,8 +11,8 @@ Feature: In an assignment, students can add and edit text online
| Course 1 | C1 | 0 | 1 | | Course 1 | C1 | 0 | 1 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -7,9 +7,9 @@ Feature: Outcome grading
Background: Background:
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student0 | Student | 0 | student0@asd.com | | student0 | Student | 0 | student0@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
And the following "courses" exist: And the following "courses" exist:
| fullname | shortname | category | groupmode | | fullname | shortname | category | groupmode |
| Course 1 | C1 | 0 | 1 | | Course 1 | C1 | 0 | 1 |
@ -74,7 +74,7 @@ Feature: Outcome grading
Scenario: Giving an outcome to a group submission Scenario: Giving an outcome to a group submission
Given the following "users" exist: Given the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| student2 | Student | 2 | student2@asd.com | | student2 | Student | 2 | student2@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| student2 | C1 | student | | student2 | C1 | student |
@ -85,8 +85,8 @@ Feature: Outcome grading
And I follow "Course 1" And I follow "Course 1"
And I expand "Users" node And I expand "Users" node
And I follow "Groups" And I follow "Groups"
And I add "Student 0 (student0@asd.com)" user to "Group 1" group members And I add "Student 0 (student0@example.com)" user to "Group 1" group members
And I add "Student 1 (student1@asd.com)" user to "Group 1" group members And I add "Student 1 (student1@example.com)" user to "Group 1" group members
And I am on homepage And I am on homepage
And I follow "Course 1" And I follow "Course 1"
And I turn editing mode on And I turn editing mode on

View file

@ -10,9 +10,9 @@ Feature: Prevent or allow assignment submission changes
| Course 1 | C1 | 0 | 1 | | Course 1 | C1 | 0 | 1 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
| student2 | Student | 2 | student2@asd.com | | student2 | Student | 2 | student2@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

View file

@ -11,8 +11,8 @@ Feature: In an assignment, teachers grade multiple students on one page
| Course 1 | C1 | 0 | 1 | | Course 1 | C1 | 0 | 1 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |
@ -50,9 +50,9 @@ Feature: In an assignment, teachers grade multiple students on one page
| Course 1 | C1 | 0 | 1 | | Course 1 | C1 | 0 | 1 |
And the following "users" exist: And the following "users" exist:
| username | firstname | lastname | email | | username | firstname | lastname | email |
| teacher1 | Teacher | 1 | teacher1@asd.com | | teacher1 | Teacher | 1 | teacher1@example.com |
| student1 | Student | 1 | student1@asd.com | | student1 | Student | 1 | student1@example.com |
| student2 | Student | 2 | student2@asd.com | | student2 | Student | 2 | student2@example.com |
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |

Some files were not shown because too many files have changed in this diff Show more