Base class for unit tests for external functions in mod_assign.
More...
Base class for unit tests for external functions in mod_assign.
- Author
- Andrew Madden andre.nosp@m.wmad.nosp@m.den@c.nosp@m.atal.nosp@m.yst-a.nosp@m.u.ne.nosp@m.t
- Copyright
- 2021 Catalyst IT
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ create_assign_with_student_and_teacher()
mod_assign\externallib_advanced_testcase::create_assign_with_student_and_teacher |
( |
array | $params = [] | ) |
|
|
protected |
Create a course, assignment module instance, student and teacher and enrol them in the course.
- Parameters
-
array | $params | parameters to be provided to the assignment module creation |
- Return values
-
array | containing the course, assignment module, student and teacher |
◆ create_submission_for_testing_status()
mod_assign\externallib_advanced_testcase::create_submission_for_testing_status |
( |
bool | $submitforgrading = false, |
|
|
array | $params = [] ) |
|
protected |
Create a submission for testing the get_submission_status function.
- Parameters
-
bool | $submitforgrading | whether to submit for grading the submission |
array | $params | Optional params to use for creating assignment instance. |
- Return values
-
array | an array containing all the required data for testing |
The documentation for this class was generated from the following file: