From 4ec683ac2fb7e7a1894369c9d3b096ec4ff27a1c Mon Sep 17 00:00:00 2001 From: Juan Leyva Date: Mon, 20 Jun 2016 11:30:45 +0100 Subject: [PATCH] MDL-54964 tool_mobile: Fix tests to make it work with non-core plugins --- admin/tool/mobile/tests/externallib_test.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/tool/mobile/tests/externallib_test.php b/admin/tool/mobile/tests/externallib_test.php index 166fe5dee0447..5a17c579208c6 100644 --- a/admin/tool/mobile/tests/externallib_test.php +++ b/admin/tool/mobile/tests/externallib_test.php @@ -50,7 +50,8 @@ public function test_get_plugins_supporting_mobile() { $result = external::get_plugins_supporting_mobile(); $result = external_api::clean_returnvalue(external::get_plugins_supporting_mobile_returns(), $result); $this->assertCount(0, $result['warnings']); - $this->assertCount(0, $result['plugins']); + $this->assertArrayHasKey('plugins', $result); + $this->assertTrue(is_array($result['plugins'])); } }