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(); }