From 66e8bf76f991d34c3696958fadf67a3e22c2bdd9 Mon Sep 17 00:00:00 2001 From: Huong Nguyen Date: Tue, 30 Jan 2024 12:32:21 +0700 Subject: [PATCH] MDL-4188 core: Modify PHPUnit to use the new sink method --- lib/tests/accesslib_test.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/tests/accesslib_test.php b/lib/tests/accesslib_test.php index cb38c113e70..60aa99c2063 100644 --- a/lib/tests/accesslib_test.php +++ b/lib/tests/accesslib_test.php @@ -31,6 +31,17 @@ defined('MOODLE_INTERNAL') || die(); * Note: execution may take many minutes especially on slower servers. */ class accesslib_test extends advanced_testcase { + + /** + * Setup. + */ + protected function setUp(): void { + parent::setUp(); + $this->resetAfterTest(); + // Turn off the course welcome message, so we can easily test other messages. + set_config('sendcoursewelcomemessage', 0, 'enrol_manual'); + } + /** * Verify comparison of context instances in phpunit asserts. */ -- 2.11.4.GIT