mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-21 06:19:38 +08:00
Fix test
This commit is contained in:
parent
5932f8984b
commit
8b7e63d237
@ -21,7 +21,6 @@ class PluginManagerTest extends TestCase
|
||||
|
||||
public function testPreventBootAgain()
|
||||
{
|
||||
$this->markTestSkipped('TODO');
|
||||
// TODO: modify asserting 0 times here
|
||||
$this->mock(Filesystem::class, function ($mock) {
|
||||
$mock->shouldReceive('directories')->times(1);
|
||||
@ -32,12 +31,14 @@ class PluginManagerTest extends TestCase
|
||||
|
||||
public function testRegisterAutoload()
|
||||
{
|
||||
$dir = config('plugins.directory');
|
||||
config(['plugins.directory' => storage_path('mocks')]);
|
||||
|
||||
$this->assertFalse(class_exists('Fake\Faker'));
|
||||
$manager = $this->rebootPluginManager(app('plugins'));
|
||||
$this->assertTrue(class_exists('Fake\Faker'));
|
||||
|
||||
config(['plugins.directory' => env('PLUGINS_DIR')]);
|
||||
config(['plugins.directory' => $dir]);
|
||||
}
|
||||
|
||||
public function testReportDuplicatedPlugins()
|
||||
|
Loading…
Reference in New Issue
Block a user