diff --git a/login/tests/notifications_test.php b/login/tests/notifications_test.php index 41c93cdf124ef..cd5969c598791 100644 --- a/login/tests/notifications_test.php +++ b/login/tests/notifications_test.php @@ -23,6 +23,15 @@ */ class core_login_notifications_testcase extends \advanced_testcase { + /** + * Load required classes + */ + public static function setUpBeforeClass(): void { + global $CFG; + + require_once($CFG->libdir . '/externallib.php'); + } + /** * Test new login notification. */