Línea 46... |
Línea 46... |
46 |
*
|
46 |
*
|
47 |
* @dataProvider submission_is_empty_testcases
|
47 |
* @dataProvider submission_is_empty_testcases
|
48 |
* @param string $submissiontext The online text submission text
|
48 |
* @param string $submissiontext The online text submission text
|
49 |
* @param bool $expected The expected return value
|
49 |
* @param bool $expected The expected return value
|
50 |
*/
|
50 |
*/
|
51 |
public function test_submission_is_empty($submissiontext, $expected) {
|
51 |
public function test_submission_is_empty($submissiontext, $expected): void {
|
52 |
$this->resetAfterTest();
|
52 |
$this->resetAfterTest();
|
Línea 53... |
Línea 53... |
53 |
|
53 |
|
54 |
$course = $this->getDataGenerator()->create_course();
|
54 |
$course = $this->getDataGenerator()->create_course();
|
55 |
$student = $this->getDataGenerator()->create_and_enrol($course, 'student');
|
55 |
$student = $this->getDataGenerator()->create_and_enrol($course, 'student');
|
Línea 73... |
Línea 73... |
73 |
*
|
73 |
*
|
74 |
* @dataProvider submission_is_empty_testcases
|
74 |
* @dataProvider submission_is_empty_testcases
|
75 |
* @param string $submissiontext The file submission data
|
75 |
* @param string $submissiontext The file submission data
|
76 |
* @param bool $expected The expected return value
|
76 |
* @param bool $expected The expected return value
|
77 |
*/
|
77 |
*/
|
78 |
public function test_new_submission_empty($submissiontext, $expected) {
|
78 |
public function test_new_submission_empty($submissiontext, $expected): void {
|
79 |
$this->resetAfterTest();
|
79 |
$this->resetAfterTest();
|
Línea 80... |
Línea 80... |
80 |
|
80 |
|
81 |
$course = $this->getDataGenerator()->create_course();
|
81 |
$course = $this->getDataGenerator()->create_course();
|
82 |
$student = $this->getDataGenerator()->create_and_enrol($course, 'student');
|
82 |
$student = $this->getDataGenerator()->create_and_enrol($course, 'student');
|