mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-21 06:19:38 +08:00
Attempt to fix test
This commit is contained in:
parent
8b7e63d237
commit
b7ee522d86
@ -19,7 +19,7 @@ class PluginManagerTest extends TestCase
|
||||
return $manager;
|
||||
}
|
||||
|
||||
public function testPreventBootAgain()
|
||||
public function testPreventBootingAgain()
|
||||
{
|
||||
// TODO: modify asserting 0 times here
|
||||
$this->mock(Filesystem::class, function ($mock) {
|
||||
@ -29,18 +29,6 @@ class PluginManagerTest extends TestCase
|
||||
app('plugins')->boot();
|
||||
}
|
||||
|
||||
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' => $dir]);
|
||||
}
|
||||
|
||||
public function testReportDuplicatedPlugins()
|
||||
{
|
||||
$this->mock(Filesystem::class, function ($mock) {
|
||||
@ -82,4 +70,16 @@ class PluginManagerTest extends TestCase
|
||||
]));
|
||||
$manager = $this->rebootPluginManager(app('plugins'));
|
||||
}
|
||||
|
||||
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' => $dir]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user