◆ 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:
- mod/assign/tests/externallib_advanced_testcase.php