From 7021ef49b4ad433d602983ec6f7ecdd34ef09d21 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Thu, 22 Aug 2019 11:27:01 +0800 Subject: [PATCH] Clean up --- tests/ServicesTest/PluginManagerTest.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/tests/ServicesTest/PluginManagerTest.php b/tests/ServicesTest/PluginManagerTest.php index 982b4a4a..88e8edda 100644 --- a/tests/ServicesTest/PluginManagerTest.php +++ b/tests/ServicesTest/PluginManagerTest.php @@ -12,23 +12,8 @@ use Illuminate\Filesystem\Filesystem; class PluginManagerTest extends TestCase { - public function rebootPluginManager(PluginManager $manager) - { - $reflection = new ReflectionClass($manager); - $property = $reflection->getProperty('booted'); - $property->setAccessible(true); - $property->setValue($manager, false); - - $manager->boot(); - - return $manager; - } - public function testPreventBootingAgain() { - $this->mock(Option::class, function ($mock) { - $mock->shouldReceive('get')->with('plugins_enabled', '[]')->andReturn('[]'); - }); $this->mock(Filesystem::class, function ($mock) { $mock->shouldReceive('directories')->times(0); });