From 3b457ce32922b0fce5c4752d963103c85c6e0e11 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Tue, 20 Aug 2019 09:40:44 +0800 Subject: [PATCH] Add a test to cover --- tests/ServicesTest/PluginManagerTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/ServicesTest/PluginManagerTest.php b/tests/ServicesTest/PluginManagerTest.php index bc73f752..caa3f7c1 100644 --- a/tests/ServicesTest/PluginManagerTest.php +++ b/tests/ServicesTest/PluginManagerTest.php @@ -497,6 +497,13 @@ class PluginManagerTest extends TestCase plugin_assets('nope', 'relative'); } + public function testDefaultPluginsDirectory() + { + $directories = app('plugins')->getPluginsDirs(); + $this->assertEquals(1, $directories->count()); + $this->assertEquals(base_path('plugins'), $directories->first()); + } + public function testReadMultipleDirectories() { $old = config('plugins.directory');