diff --git a/mod/lesson/tests/locallib_test.php b/mod/lesson/tests/locallib_test.php index ecd6059a5c6..82561af364d 100644 --- a/mod/lesson/tests/locallib_test.php +++ b/mod/lesson/tests/locallib_test.php @@ -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'); } diff --git a/mod/quiz/tests/attempt_test.php b/mod/quiz/tests/attempt_test.php index 77e41450bee..d88d0d513f3 100644 --- a/mod/quiz/tests/attempt_test.php +++ b/mod/quiz/tests/attempt_test.php @@ -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'); }