Add a test to cover

This commit is contained in:
Pig Fang 2019-08-20 09:40:44 +08:00
parent 4fcdfc2b7e
commit 3b457ce329

View File

@ -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');