From 61acf7d7be870769324defb49366d535e5532b2e Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Fri, 11 Oct 2024 16:15:16 +0100 Subject: [PATCH] MDL-83432 enrol: fix arguments to enrolment test generator. --- mod/lesson/tests/locallib_test.php | 2 +- mod/quiz/tests/attempt_test.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'); }