diff --git a/server/moodle/mod/livequiz/tests/phpunit/lib_test.php b/server/moodle/mod/livequiz/tests/phpunit/lib_test.php index 3b3cefec2..620749575 100644 --- a/server/moodle/mod/livequiz/tests/phpunit/lib_test.php +++ b/server/moodle/mod/livequiz/tests/phpunit/lib_test.php @@ -41,6 +41,7 @@ protected function setUp(): void { * It should return false if the instance cannot be added. */ public function test_livequiz_add_instance(): void { + require_once(__DIR__ . '/../../lib.php'); global $DB; $quizdata = new \stdClass(); // Create a new stdClass object (empty object).