MDL-83432 enrol: fix arguments to enrolment test generator.

This commit is contained in:
Paul Holden
2024-10-18 15:12:52 +01:00
parent 23a60a1220
commit 599a3be74f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -250,7 +250,7 @@ class locallib_test extends \advanced_testcase {
$this->assertEquals(true, $lesson->is_participant($USER->id),
'Admin is enrolled and can participate');
$this->getDataGenerator()->enrol_user(2, $course->id, [], 'manual', 0, 0, ENROL_USER_SUSPENDED);
$this->getDataGenerator()->enrol_user(2, $course->id, null, 'manual', 0, 0, ENROL_USER_SUSPENDED);
$this->assertEquals(true, $lesson->is_participant($USER->id),
'Admin is enrolled, suspended and can participate');
}
+1 -1
View File
@@ -308,7 +308,7 @@ class attempt_test extends \advanced_testcase {
$this->assertEquals(true, $quizobj->is_participant($USER->id),
'Admin is enrolled and can participate');
$this->getDataGenerator()->enrol_user(2, $course->id, [], 'manual', 0, 0, ENROL_USER_SUSPENDED);
$this->getDataGenerator()->enrol_user(2, $course->id, null, 'manual', 0, 0, ENROL_USER_SUSPENDED);
$this->assertEquals(true, $quizobj->is_participant($USER->id),
'Admin is enrolled, suspended and can participate');
}