mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
MDL-70083 message: Adapt tests to new number of default providers
We now have enough default providers, so no need to show a warning in that case
This commit is contained in:
parent
6f0f979ae3
commit
2d5ee7bf1a
@ -42,7 +42,7 @@ class message_airnotifier_manager_testcase extends advanced_testcase {
|
||||
$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::WARNING, $checks[6]->get_status()); // Only a few of default mobile notifications.
|
||||
$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.
|
||||
}
|
||||
|
||||
@ -66,7 +66,7 @@ class message_airnotifier_manager_testcase extends advanced_testcase {
|
||||
$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::WARNING, $checks[5]->get_status()); // Only a few of default mobile notifications.
|
||||
$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.
|
||||
}
|
||||
|
||||
@ -94,7 +94,7 @@ class message_airnotifier_manager_testcase extends advanced_testcase {
|
||||
$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::WARNING, $checks[6]->get_status()); // Only a few of default mobile notifications.
|
||||
$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.
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user