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:
@@ -42,18 +42,18 @@ class gradeimport_csv_load_data_testcase extends grade_base_testcase {
|
||||
|
||||
/** @var string $oktext Text to be imported. This data should have no issues being imported. */
|
||||
protected $oktext = '"First name",Surname,"ID number",Institution,Department,"Email address","Assignment: Assignment for grape group", "Feedback: Assignment for grape group","Assignment: Second new grade item","Course total"
|
||||
Anne,Able,,"Moodle HQ","Rock on!",student7@mail.com,56.00,"We welcome feedback",,56.00
|
||||
Bobby,Bunce,,"Moodle HQ","Rock on!",student5@mail.com,75.00,,45.0,75.00';
|
||||
Anne,Able,,"Moodle HQ","Rock on!",student7@example.com,56.00,"We welcome feedback",,56.00
|
||||
Bobby,Bunce,,"Moodle HQ","Rock on!",student5@example.com,75.00,,45.0,75.00';
|
||||
|
||||
/** @var string $badtext Text to be imported. This data has an extra column and should not succeed in being imported. */
|
||||
protected $badtext = '"First name",Surname,"ID number",Institution,Department,"Email address","Assignment: Assignment for grape group","Course total"
|
||||
Anne,Able,,"Moodle HQ","Rock on!",student7@mail.com,56.00,56.00,78.00
|
||||
Bobby,Bunce,,"Moodle HQ","Rock on!",student5@mail.com,75.00,75.00';
|
||||
Anne,Able,,"Moodle HQ","Rock on!",student7@example.com,56.00,56.00,78.00
|
||||
Bobby,Bunce,,"Moodle HQ","Rock on!",student5@example.com,75.00,75.00';
|
||||
|
||||
/** @var string $csvtext CSV data to be imported with Last download from this course column. */
|
||||
protected $csvtext = '"First name",Surname,"ID number",Institution,Department,"Email address","Assignment: Assignment for grape group", "Feedback: Assignment for grape group","Course total","Last downloaded from this course"
|
||||
Anne,Able,,"Moodle HQ","Rock on!",student7@mail.com,56.00,"We welcome feedback",56.00,{exportdate}
|
||||
Bobby,Bunce,,"Moodle HQ","Rock on!",student5@mail.com,75.00,,75.00,{exportdate}';
|
||||
Anne,Able,,"Moodle HQ","Rock on!",student7@example.com,56.00,"We welcome feedback",56.00,{exportdate}
|
||||
Bobby,Bunce,,"Moodle HQ","Rock on!",student5@example.com,75.00,,75.00,{exportdate}';
|
||||
|
||||
/** @var int $iid Import ID. */
|
||||
protected $iid;
|
||||
@@ -106,7 +106,7 @@ Bobby,Bunce,,"Moodle HQ","Rock on!",[email protected],75.00,,75.00,{exportdate}'
|
||||
'',
|
||||
'Moodle HQ',
|
||||
'Rock on!',
|
||||
'student7@mail.com',
|
||||
'student7@example.com',
|
||||
56.00,
|
||||
'We welcome feedback',
|
||||
'',
|
||||
@@ -118,7 +118,7 @@ Bobby,Bunce,,"Moodle HQ","Rock on!",[email protected],75.00,,75.00,{exportdate}'
|
||||
'',
|
||||
'Moodle HQ',
|
||||
'Rock on!',
|
||||
'student5@mail.com',
|
||||
'student5@example.com',
|
||||
75.00,
|
||||
'',
|
||||
45.0,
|
||||
@@ -250,7 +250,7 @@ Bobby,Bunce,,"Moodle HQ","Rock on!",[email protected],75.00,,75.00,{exportdate}'
|
||||
$user = new stdClass();
|
||||
$user->firstname = 'Anne';
|
||||
$user->lastname = 'Able';
|
||||
$user->email = 'student7@mail.com';
|
||||
$user->email = 'student7@example.com';
|
||||
$userdetail = $this->getDataGenerator()->create_user($user);
|
||||
|
||||
$testobject = new phpunit_gradeimport_csv_load_data();
|
||||
@@ -352,7 +352,7 @@ Bobby,Bunce,,"Moodle HQ","Rock on!",[email protected],75.00,,75.00,{exportdate}'
|
||||
$user = new stdClass();
|
||||
$user->firstname = 'Anne';
|
||||
$user->lastname = 'Able';
|
||||
$user->email = 'student7@mail.com';
|
||||
$user->email = 'student7@example.com';
|
||||
$userdetail = $this->getDataGenerator()->create_user($user);
|
||||
|
||||
$testarray = $this->csv_load($this->oktext);
|
||||
@@ -407,13 +407,13 @@ Bobby,Bunce,,"Moodle HQ","Rock on!",[email protected],75.00,,75.00,{exportdate}'
|
||||
$user = new stdClass();
|
||||
$user->firstname = 'Anne';
|
||||
$user->lastname = 'Able';
|
||||
$user->email = 'student7@mail.com';
|
||||
$user->email = 'student7@example.com';
|
||||
// Insert user 1.
|
||||
$this->getDataGenerator()->create_user($user);
|
||||
$user = new stdClass();
|
||||
$user->firstname = 'Bobby';
|
||||
$user->lastname = 'Bunce';
|
||||
$user->email = 'student5@mail.com';
|
||||
$user->email = 'student5@example.com';
|
||||
// Insert user 2.
|
||||
$this->getDataGenerator()->create_user($user);
|
||||
|
||||
@@ -459,13 +459,13 @@ Bobby,Bunce,,"Moodle HQ","Rock on!",[email protected],75.00,,75.00,{exportdate}'
|
||||
$user = new stdClass();
|
||||
$user->firstname = 'Anne';
|
||||
$user->lastname = 'Able';
|
||||
$user->email = 'student7@mail.com';
|
||||
$user->email = 'student7@example.com';
|
||||
$user->id_number = 1;
|
||||
$user1 = $this->getDataGenerator()->create_user($user);
|
||||
$user = new stdClass();
|
||||
$user->firstname = 'Bobby';
|
||||
$user->lastname = 'Bunce';
|
||||
$user->email = 'student5@mail.com';
|
||||
$user->email = 'student5@example.com';
|
||||
$user->id_number = 2;
|
||||
$user2 = $this->getDataGenerator()->create_user($user);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user