Skip to content

Commit

Permalink
MDL-73391 lib: include externalib to prevent unit test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarsden committed Dec 17, 2021
1 parent 508fe39 commit 6d95354
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions login/tests/notifications_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 6d95354

Please sign in to comment.