From e8acf6b5038ad2700da551bb01d42ee182bb9508 Mon Sep 17 00:00:00 2001 From: Dmitrii Metelkin Date: Fri, 3 Jun 2022 16:44:24 +1000 Subject: [PATCH] Fix declaration issue in unit tests --- tests/phpunit/auth_plugin_test.php | 2 +- tests/phpunit/core_userkey_manager_test.php | 2 +- tests/phpunit/externallib_test.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/auth_plugin_test.php b/tests/phpunit/auth_plugin_test.php index 647769b..37c588e 100644 --- a/tests/phpunit/auth_plugin_test.php +++ b/tests/phpunit/auth_plugin_test.php @@ -44,7 +44,7 @@ class auth_plugin_userkey_testcase extends advanced_testcase { /** * Initial set up. */ - public function setUp() { + public function setUp(): void { global $CFG; require_once($CFG->libdir . "/externallib.php"); diff --git a/tests/phpunit/core_userkey_manager_test.php b/tests/phpunit/core_userkey_manager_test.php index c95bd6b..bf79ae5 100644 --- a/tests/phpunit/core_userkey_manager_test.php +++ b/tests/phpunit/core_userkey_manager_test.php @@ -49,7 +49,7 @@ class core_userkey_manager_testcase extends advanced_testcase { /** * Initial set up. */ - public function setUp() { + public function setUp(): void { global $CFG; parent::setUp(); diff --git a/tests/phpunit/externallib_test.php b/tests/phpunit/externallib_test.php index 5e29425..79d6e3b 100644 --- a/tests/phpunit/externallib_test.php +++ b/tests/phpunit/externallib_test.php @@ -33,7 +33,7 @@ class auth_userkey_externallib_testcase extends advanced_testcase { /** * Initial set up. */ - public function setUp() { + public function setUp(): void { global $CFG; require_once($CFG->libdir . "/externallib.php");