From c3934702e098f4c8e06566768f81da91fa73e25a Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Mon, 23 Jul 2018 10:11:04 +0800 Subject: [PATCH] Update test --- tests/PluginControllerTest.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/PluginControllerTest.php b/tests/PluginControllerTest.php index 9a55be72..84a0bdc0 100644 --- a/tests/PluginControllerTest.php +++ b/tests/PluginControllerTest.php @@ -14,7 +14,7 @@ class PluginControllerTest extends TestCase $plugins = [ 'example-plugin' => 'example-plugin_v1.0.0.zip', - 'avatar-api' => 'avatar-api_v1.1.0.zip' + 'avatar-api' => 'avatar-api_v1.1.1.zip' ]; foreach ($plugins as $plugin_name => $filename) { @@ -81,6 +81,16 @@ class PluginControllerTest extends TestCase 'msg' => trans('admin.invalid-action') ]); + // Retrieve requirements + $this->postJson('/admin/plugins/manage', [ + 'name' => 'avatar-api', + 'action' => 'requirements' + ])->assertJson([ + 'isRequirementsSatisfied' => true, + 'requirements' => [], + 'unsatisfiedRequirements' => [] + ]); + // Enable a plugin with unsatisfied dependencies app('plugins')->getPlugin('avatar-api')->setRequirements([ 'blessing-skin-server' => '^3.4.0',