From d65c9fcd9f3a5feb864994c51c87330eb2433d25 Mon Sep 17 00:00:00 2001 From: Patryk Mroczko Date: Mon, 25 Nov 2024 11:17:09 +0100 Subject: [PATCH] Fix Moodle plugins CI errors --- auth/oidc/tests/privacy_provider_test.php | 2 +- local/o365/tests/privacy_provider_test.php | 1 + local/onenote/tests/privacy_provider_test.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/auth/oidc/tests/privacy_provider_test.php b/auth/oidc/tests/privacy_provider_test.php index dc60bbf6f..6a3989c2d 100644 --- a/auth/oidc/tests/privacy_provider_test.php +++ b/auth/oidc/tests/privacy_provider_test.php @@ -41,7 +41,7 @@ final class privacy_provider_test extends \core_privacy\tests\provider_testcase * Tests set up. */ public function setUp(): void { - global $CFG; + parent::setUp(); $this->resetAfterTest(); $this->setAdminUser(); } diff --git a/local/o365/tests/privacy_provider_test.php b/local/o365/tests/privacy_provider_test.php index d076e382a..08ae5a455 100644 --- a/local/o365/tests/privacy_provider_test.php +++ b/local/o365/tests/privacy_provider_test.php @@ -47,6 +47,7 @@ final class privacy_provider_test extends provider_testcase { * Tests set up. */ protected function setUp(): void { + parent::setUp(); $this->resetAfterTest(); $this->setAdminUser(); } diff --git a/local/onenote/tests/privacy_provider_test.php b/local/onenote/tests/privacy_provider_test.php index 90cdb67df..0b6ea3293 100644 --- a/local/onenote/tests/privacy_provider_test.php +++ b/local/onenote/tests/privacy_provider_test.php @@ -48,7 +48,7 @@ final class privacy_provider_test extends provider_testcase { * Tests set up. */ public function setUp(): void { - global $CFG; + parent::setUp(); $this->resetAfterTest(); $this->setAdminUser(); }