Skip to content

Commit

Permalink
Merge branch 'master-MDL-72210' of https://github.com/golenkovm/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 authored and ilyatregubov committed Aug 19, 2021
2 parents 4275de7 + 227a831 commit 39d9c8f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions message/output/airnotifier/tests/manager_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ public function test_check_configuration_default() {

// Mock server responses.
$CFG->airnotifierurl = 'localhost';
curl::mock_response(json_encode(['status' => 'ok'])); // Mock first request to check URL.
curl::mock_response(json_encode(['error' => 'Invalid access key'])); // Mock second request to check acces key.
curl::mock_response(json_encode(['error' => 'Invalid access key'])); // Mock request to check access key.
$checks = $manager->check_configuration();

$this->assertEquals(core\check\result::OK, $checks[0]->get_status()); // Mobile service enabled.
Expand Down Expand Up @@ -103,7 +102,6 @@ public function test_has_enabled_devices() {
$manager = new message_airnotifier_manager();

// No devices yet for current user.
curl::mock_response(json_encode(['status' => 'ok']));
$this->assertFalse($manager->has_enabled_devices($CFG->airnotifiermobileappname));

// Add devices.
Expand Down

0 comments on commit 39d9c8f

Please sign in to comment.