MDL-49799 behat: replaced asd.com with example.com

asd.com is a valid domain, we should use reserved domain names for testing
This commit is contained in:
Rajesh Taneja
2015-04-20 11:21:20 +08:00
parent d302ba231f
commit 0fe86bbdbb
251 changed files with 960 additions and 960 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ class behat_util extends testing_util {
// Update admin user info.
$user = $DB->get_record('user', array('username' => 'admin'));
$user->email = 'moodle@moodlemoodle.com';
$user->email = 'moodle@example.com';
$user->firstname = 'Admin';
$user->lastname = 'User';
$user->city = 'Perth';
+2 -2
View File
@@ -56,7 +56,7 @@ class core_datalib_testcase extends advanced_testcase {
'idnumber' => 'idnumbertest1',
'firstname' => 'First 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',
'phone1' => '01010101010',
'phone2' => '02020203',
@@ -79,7 +79,7 @@ class core_datalib_testcase extends advanced_testcase {
'idnumber' => 'idnumbertest2',
'firstname' => 'First 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',
'phone1' => '01010101010',
'phone2' => '02020203',
+1 -1
View File
@@ -7,7 +7,7 @@ BEGIN:VEVENT
DTSTART:20141028T213000Z
DTEND:20141028T223000Z
DTSTAMP:20141028T211302Z
ORGANIZER;CN=John Smith:mailto:john.smith@local.host
ORGANIZER;CN=John Smith:mailto:john.smith@example.com
UID:[email protected]
CREATED:20141028T210927Z
DESCRIPTION:Lorem ipsum dolor sit amet\, consectetur adipisicing elit.
+2 -2
View File
@@ -1,3 +1,3 @@
username,password,firstname,lastname,email,course1,group1
jonest,verysecret,Tom,Jones,jonest@someplace.edu,math102,Section 1
reznor,somesecret,Trent,Reznor,reznor@someplace.edu,math102,Section 3
jonest,verysecret,Tom,Jones,jonest@example.com,math102,Section 1
reznor,somesecret,Trent,Reznor,reznor@example.com,math102,Section 3
1 username password firstname lastname email course1 group1
2 jonest verysecret Tom Jones [email protected] [email protected] math102 Section 1
3 reznor somesecret Trent Reznor [email protected] [email protected] math102 Section 3
+6 -6
View File
@@ -64,8 +64,8 @@ class core_ldaplib_testcase extends advanced_testcase {
'expected' => 'James\\20\\22Jim\22\\20\\3d\\20Smith\\2c\\20III',
),
array (
'test' => ' <jsmith@test.local> ',
'expected' => '\\20\\20\\3cjsmith@test.local\\3e\\20',
'test' => ' <jsmith@example.com> ',
'expected' => '\\20\\20\\3cjsmith@example.com\\3e\\20',
),
);
@@ -149,12 +149,12 @@ class core_ldaplib_testcase extends advanced_testcase {
'expected' => 'James "Jim" = Smith, III',
),
array (
'test' => '\\20\\20\\3cjsmith@test.local\\3e\\20',
'expected' => ' <jsmith@test.local> ',
'test' => '\\20\\20\\3cjsmith@example.com\\3e\\20',
'expected' => ' <jsmith@example.com> ',
),
array (
'test' => '\\ \\<jsmith@test.local\\>\\ ',
'expected' => ' <jsmith@test.local> ',
'test' => '\\ \\<jsmith@example.com\\>\\ ',
'expected' => ' <jsmith@example.com> ',
),
array (
'test' => 'Lu\\C4\\8Di\\C4\\87',
+2 -2
View File
@@ -60,7 +60,7 @@ class core_message_testcase extends advanced_testcase {
$message->notification = '0';
$message->contexturl = 'http://GalaxyFarFarAway.com';
$message->contexturlname = 'Context name';
$message->replyto = "random@random.com";
$message->replyto = "random@example.com";
$message->attachname = 'attachment';
$content = array('*' => array('header' => ' test ', 'footer' => ' test ')); // Extra content for all types of messages.
$message->set_additional_content('test', $content);
@@ -201,4 +201,4 @@ class core_message_testcase extends advanced_testcase {
$this->assertNotRegExp('/test message body test/', $email->body);
$sink->close();
}
}
}
+2 -2
View File
@@ -2749,7 +2749,7 @@ class core_moodlelib_testcase extends advanced_testcase {
$userinfo->authormiddlename = '';
$userinfo->authorpicture = 23;
$userinfo->authorimagealt = 'Michael Jordan draining another basket.';
$userinfo->authoremail = 'test@testing.net';
$userinfo->authoremail = 'test@example.com';
// Return an object with user picture information.
@@ -2765,7 +2765,7 @@ class core_moodlelib_testcase extends advanced_testcase {
$expectedarray->lastnamephonetic = 'カンベッル';
$expectedarray->middlename = '';
$expectedarray->alternatename = '';
$expectedarray->email = 'test@testing.net';
$expectedarray->email = 'test@example.com';
$expectedarray->picture = 23;
$expectedarray->imagealt = 'Michael Jordan draining another basket.';
$this->assertEquals($user, $expectedarray);
+1 -1
View File
@@ -72,7 +72,7 @@ class core_user_testcase extends advanced_testcase {
// When supportemail is set.
core_user::reset_internal_users();
$CFG->supportemail = 'test@support.moodle.test';
$CFG->supportemail = 'test@example.com';
$supportuser = core_user::get_support_user();
$this->assertEquals(core_user::SUPPORT_USER, $supportuser->id);
$this->assertFalse(core_user::is_real_user($supportuser->id));