Fix declaration issue in unit tests

This commit is contained in:
Dmitrii Metelkin 2022-06-03 16:44:24 +10:00
parent b2693a7b6f
commit e8acf6b503
3 changed files with 3 additions and 3 deletions

View file

@ -44,7 +44,7 @@ class auth_plugin_userkey_testcase extends advanced_testcase {
/** /**
* Initial set up. * Initial set up.
*/ */
public function setUp() { public function setUp(): void {
global $CFG; global $CFG;
require_once($CFG->libdir . "/externallib.php"); require_once($CFG->libdir . "/externallib.php");

View file

@ -49,7 +49,7 @@ class core_userkey_manager_testcase extends advanced_testcase {
/** /**
* Initial set up. * Initial set up.
*/ */
public function setUp() { public function setUp(): void {
global $CFG; global $CFG;
parent::setUp(); parent::setUp();

View file

@ -33,7 +33,7 @@ class auth_userkey_externallib_testcase extends advanced_testcase {
/** /**
* Initial set up. * Initial set up.
*/ */
public function setUp() { public function setUp(): void {
global $CFG; global $CFG;
require_once($CFG->libdir . "/externallib.php"); require_once($CFG->libdir . "/externallib.php");