MDL-54964 tool_mobile: Fix tests to make it work with non-core plugins

This commit is contained in:
Juan Leyva
2016-06-27 09:46:33 +01:00
parent a7221c5f19
commit 4ec683ac2f
+2 -1
View File
@@ -50,7 +50,8 @@ class tool_mobile_external_testcase extends externallib_advanced_testcase {
$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']));
}
}