mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-76739 lang: Use the fixed strings in the tests, too
This commit is contained in:
parent
975a127325
commit
50ba9dc72c
30 changed files with 120 additions and 120 deletions
|
@ -34,17 +34,17 @@ require_once($CFG->libdir . '/grade/tests/fixtures/lib.php');
|
|||
class load_data_test 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"
|
||||
protected $oktext = '"First name","Last name","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@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"
|
||||
protected $badtext = '"First name","Last name","ID number",Institution,Department,"Email address","Assignment: Assignment for grape group","Course total"
|
||||
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"
|
||||
protected $csvtext = '"First name","Last name","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@example.com,56.00,"We welcome feedback",56.00,{exportdate}
|
||||
Bobby,Bunce,,"Moodle HQ","Rock on!",student5@example.com,75.00,,75.00,{exportdate}';
|
||||
|
||||
|
@ -121,7 +121,7 @@ Bobby,Bunce,,"Moodle HQ","Rock on!",student5@example.com,75.00,,75.00,{exportdat
|
|||
|
||||
$expectedheaders = array(
|
||||
'First name',
|
||||
'Surname',
|
||||
'Last name',
|
||||
'ID number',
|
||||
'Institution',
|
||||
'Department',
|
||||
|
|
|
@ -56,7 +56,7 @@ Feature: A teacher checks the grade history report in a course
|
|||
And I navigate to "View > Grade history" in the course gradebook
|
||||
When I press "Submit"
|
||||
Then the following should exist in the "gradereport_history" table:
|
||||
| First name/Surname | Email address | Favourite food | Grade item | Original grade | Revised grade | Grader |
|
||||
| First name/Last name | Email address | Favourite food | Grade item | Original grade | Revised grade | Grader |
|
||||
| Student 1 | student1@example.com | apple | The greatest assignment ever | | 50.00 | Teacher 1 |
|
||||
| Student 1 | student1@example.com | apple | Rewarding assignment | | 60.00 | Teacher 1 |
|
||||
| Student 2 | student2@example.com | orange | The greatest assignment ever | | 50.00 | Teacher 1 |
|
||||
|
@ -84,7 +84,7 @@ Feature: A teacher checks the grade history report in a course
|
|||
And I press "Finish selecting users"
|
||||
And I press "Submit"
|
||||
And the following should exist in the "gradereport_history" table:
|
||||
| First name/Surname | Grade item | Original grade | Revised grade | Grader |
|
||||
| First name/Last name | Grade item | Original grade | Revised grade | Grader |
|
||||
| Student 1 | The greatest assignment ever | | 50.00 | Teacher 1 |
|
||||
| Student 1 | Rewarding assignment | | 60.00 | Teacher 1 |
|
||||
| Student 1 | The greatest assignment ever | 50.00 | 70.00 | Teacher 2 |
|
||||
|
@ -101,7 +101,7 @@ Feature: A teacher checks the grade history report in a course
|
|||
And I set the field "Grade item" to "The greatest assignment ever"
|
||||
And I press "Submit"
|
||||
And the following should exist in the "gradereport_history" table:
|
||||
| First name/Surname | Grade item | Original grade | Revised grade | Grader |
|
||||
| First name/Last name | Grade item | Original grade | Revised grade | Grader |
|
||||
| Student 1 | The greatest assignment ever | | 50.00 | Teacher 1 |
|
||||
| Student 1 | The greatest assignment ever | 50.00 | 70.00 | Teacher 2 |
|
||||
And the following should not exist in the "gradereport_history" table:
|
||||
|
@ -111,7 +111,7 @@ Feature: A teacher checks the grade history report in a course
|
|||
And I set the field "Grader" to "Teacher 1"
|
||||
And I press "Submit"
|
||||
And the following should exist in the "gradereport_history" table:
|
||||
| First name/Surname | Email address | Favourite food | Grade item | Original grade | Revised grade | Grader |
|
||||
| First name/Last name | Email address | Favourite food | Grade item | Original grade | Revised grade | Grader |
|
||||
| Student 1 | student1@example.com | apple | The greatest assignment ever | | 50.00 | Teacher 1 |
|
||||
And the following should not exist in the "gradereport_history" table:
|
||||
| Student 1 | The greatest assignment ever | 50.00 | 70.00 | Teacher 2 |
|
||||
|
@ -119,5 +119,5 @@ Feature: A teacher checks the grade history report in a course
|
|||
And I click on "id_revisedonly" "checkbox"
|
||||
And I press "Submit"
|
||||
And the following should exist in the "gradereport_history" table:
|
||||
| First name/Surname | Email address | Favourite food | Grade item | Original grade | Revised grade | Grader |
|
||||
| First name/Last name | Email address | Favourite food | Grade item | Original grade | Revised grade | Grader |
|
||||
| Student 1 | student1@example.com | apple | The greatest assignment ever | | 50.00 | Teacher 1 |
|
||||
|
|
|
@ -93,7 +93,7 @@ Feature: We can use Single view
|
|||
And I press "Save"
|
||||
Then I should see "Grades were set for 1 items"
|
||||
And the following should exist in the "generaltable" table:
|
||||
| First name (Alternate name) Surname | Grade |
|
||||
| First name (Alternate name) Last name | Grade |
|
||||
| Ann, Jill, Grainne, Beauchamp | Very good |
|
||||
And I log out
|
||||
And I log in as "teacher2"
|
||||
|
|
|
@ -34,7 +34,7 @@ Feature: Regrading grades does not unnecessarily mark some as overriden
|
|||
And I navigate to "View > Grader report" in the course gradebook
|
||||
And the following should exist in the "gradereport-grader-table" table:
|
||||
| | | |
|
||||
| First name / Surname | Assignment 1 | Course total |
|
||||
| First name / Last name | Assignment 1 | Course total |
|
||||
| Student 1 | 80.00 | 80.00 |
|
||||
| Student 2 | 60.00 | 60.00 |
|
||||
And I turn editing mode on
|
||||
|
@ -68,6 +68,6 @@ Feature: Regrading grades does not unnecessarily mark some as overriden
|
|||
And I navigate to "View > Grader report" in the course gradebook
|
||||
Then the following should exist in the "gradereport-grader-table" table:
|
||||
| | | |
|
||||
| First name / Surname | Assignment 1 | Course total |
|
||||
| First name / Last name | Assignment 1 | Course total |
|
||||
| Student 1 | 90.00 | 180.00 |
|
||||
| Student 2 | 70.00 | 160.00 |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue