From 89e2621bf6b75ebe80ff6712256987069f476fad Mon Sep 17 00:00:00 2001 From: Qihui Chan Date: Tue, 20 Dec 2022 16:35:56 +1000 Subject: [PATCH] Fix failed Github CI tests --- classes/form/outage/edit.php | 2 +- tests/phpunit/local/outagelib_test.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/form/outage/edit.php b/classes/form/outage/edit.php index 10b44e2..78f7108 100644 --- a/classes/form/outage/edit.php +++ b/classes/form/outage/edit.php @@ -164,7 +164,7 @@ class edit extends moodleform { // If the default_autostart is configured in config, then force autostart to be the default value. if (array_key_exists('auth_outage', $CFG->forced_plugin_settings) - && array_key_exists('default_autostart', $CFG->forced_plugin_settings['auth_outage'])){ + && array_key_exists('default_autostart', $CFG->forced_plugin_settings['auth_outage'])) { $this->_form->setDefaults([ 'autostart' => $CFG->forced_plugin_settings['auth_outage']['default_autostart'] ]); diff --git a/tests/phpunit/local/outagelib_test.php b/tests/phpunit/local/outagelib_test.php index 9fae62d..9845386 100644 --- a/tests/phpunit/local/outagelib_test.php +++ b/tests/phpunit/local/outagelib_test.php @@ -360,6 +360,7 @@ EOT; /** * Test create maintenance php code without age * + * @param string $configkey The key of the config. * @dataProvider test_createmaintenancephpcode_withoutage_provider */ public function test_createmaintenancephpcode_withoutage($configkey) {