From 67f2d513ea33bee89eae1a8fcc6ce69dc9d7755d Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Wed, 1 Apr 2020 15:34:14 +0800 Subject: [PATCH] tweak tests --- tests/CommandsTest/PluginDisableCommandTest.php | 3 +++ tests/CommandsTest/PluginEnableCommandTest.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tests/CommandsTest/PluginDisableCommandTest.php b/tests/CommandsTest/PluginDisableCommandTest.php index 5a7d3a64..74162e77 100644 --- a/tests/CommandsTest/PluginDisableCommandTest.php +++ b/tests/CommandsTest/PluginDisableCommandTest.php @@ -4,9 +4,12 @@ namespace Tests; use App\Services\Plugin; use App\Services\PluginManager; +use Illuminate\Foundation\Testing\DatabaseTransactions; class PluginDisableCommandTest extends TestCase { + use DatabaseTransactions; + public function testDisablePlugin() { $this->mock(PluginManager::class, function ($mock) { diff --git a/tests/CommandsTest/PluginEnableCommandTest.php b/tests/CommandsTest/PluginEnableCommandTest.php index f92c7836..e652a696 100644 --- a/tests/CommandsTest/PluginEnableCommandTest.php +++ b/tests/CommandsTest/PluginEnableCommandTest.php @@ -4,9 +4,12 @@ namespace Tests; use App\Services\Plugin; use App\Services\PluginManager; +use Illuminate\Foundation\Testing\DatabaseTransactions; class PluginEnableCommandTest extends TestCase { + use DatabaseTransactions; + public function testEnablePlugin() { $this->mock(PluginManager::class, function ($mock) {