Tweak test

This commit is contained in:
Pig Fang 2019-08-20 11:50:07 +08:00
parent 3ee84f766d
commit 70726a1c5a

View File

@ -499,9 +499,14 @@ class PluginManagerTest extends TestCase
public function testDefaultPluginsDirectory()
{
$old = config('plugins.directory');
config(['plugins.directory' => null]);
$directories = app('plugins')->getPluginsDirs();
$this->assertEquals(1, $directories->count());
$this->assertEquals(base_path('plugins'), $directories->first());
config(['plugins.directory' => $old]);
}
public function testReadMultipleDirectories()