From e69b8758e341f53a3d014d4b70474b65df9028b4 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Thu, 6 Sep 2018 19:31:35 +0800 Subject: [PATCH] Fix tests --- tests/Concerns/GeneratesFakePlugins.php | 2 +- tests/PluginControllerTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Concerns/GeneratesFakePlugins.php b/tests/Concerns/GeneratesFakePlugins.php index 886ecad2..e79254d8 100644 --- a/tests/Concerns/GeneratesFakePlugins.php +++ b/tests/Concerns/GeneratesFakePlugins.php @@ -23,7 +23,7 @@ trait GeneratesFakePlugins 'url' => 'https://'.str_random(10).'.test', 'namespace' => str_random(10), 'require' => [ - 'blessing-skin-server' => '^3.4.0' + 'blessing-skin-server' => '^3.4.0 || ^4.0.0' ] ], $info); } diff --git a/tests/PluginControllerTest.php b/tests/PluginControllerTest.php index 9dd633f7..99691a25 100644 --- a/tests/PluginControllerTest.php +++ b/tests/PluginControllerTest.php @@ -67,7 +67,7 @@ class PluginControllerTest extends TestCase // Enable a plugin with unsatisfied dependencies app('plugins')->getPlugin('fake-plugin-for-test')->setRequirements([ - 'blessing-skin-server' => '^3.4.0', + 'blessing-skin-server' => '^3.4.0 || ^4.0.0', 'fake-plugin-with-config-view' => '^6.6.6', 'whatever' => '^1.0.0' ]);