From c0c478acb4e9d323f4abc2df9de02b4e53fb1149 Mon Sep 17 00:00:00 2001 From: Cameron Ball Date: Thu, 2 Feb 2023 14:10:01 +0800 Subject: [PATCH] MDL-77123 message_airnotifier: Don't test configured providers --- message/output/airnotifier/tests/manager_test.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/message/output/airnotifier/tests/manager_test.php b/message/output/airnotifier/tests/manager_test.php index 7a17f912c0ed6..95d578aa30a2e 100644 --- a/message/output/airnotifier/tests/manager_test.php +++ b/message/output/airnotifier/tests/manager_test.php @@ -46,7 +46,6 @@ public function test_check_configuration_default() { $this->assertEquals(\core\check\result::ERROR, $checks[3]->get_status()); // Airnotifier NOT configured, missing key. $this->assertEquals(\core\check\result::OK, $checks[4]->get_status()); // Airnotifier URL available. $this->assertEquals(\core\check\result::ERROR, $checks[5]->get_status()); // Missing access key. - $this->assertEquals(\core\check\result::OK, $checks[6]->get_status()); // Enough default mobile notifications. $this->assertEquals(\core\check\result::ERROR, $checks[7]->get_status()); // No registered devices yet. } @@ -70,7 +69,6 @@ public function test_check_configuration_with_token() { $this->assertEquals(\core\check\result::OK, $checks[3]->get_status()); // Airnotifier configured. $this->assertEquals(\core\check\result::OK, $checks[4]->get_status()); // Airnotifier URL available. // The original function fourth check (access key valid in the remote Airnotifier server) is not mockable. - $this->assertEquals(\core\check\result::OK, $checks[5]->get_status()); // Enough default mobile notifications. $this->assertEquals(\core\check\result::ERROR, $checks[6]->get_status()); // No registered devices yet. } @@ -98,7 +96,6 @@ public function test_check_configuration_incorrect_settings() { $this->assertEquals(\core\check\result::ERROR, $checks[4]->get_status()); // Airnotifier URL available. $this->assertEquals(\core\check\result::OK, $checks[5]->get_status()); // Invalid setting (empty space). // The original function fifth check (access key valid in the remote Airnotifier server) is not mockable. - $this->assertEquals(\core\check\result::OK, $checks[6]->get_status()); // Enough default mobile notifications. $this->assertEquals(\core\check\result::ERROR, $checks[7]->get_status()); // No registered devices yet. }