From 45d7e9b1342d2a91e4ac40b59db4e9ab19ba2586 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Thu, 2 Mar 2023 13:13:30 -0800 Subject: [PATCH] Switch to using LazilyRefreshDatabase in unit test suite --- tests/Unit/BaseTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Unit/BaseTest.php b/tests/Unit/BaseTest.php index 136978be27..ae27956d2d 100644 --- a/tests/Unit/BaseTest.php +++ b/tests/Unit/BaseTest.php @@ -5,6 +5,7 @@ use App\Models\User; use App\Models\Setting; use Illuminate\Foundation\Testing\DatabaseMigrations; use Illuminate\Foundation\Testing\DatabaseTransactions; +use Illuminate\Foundation\Testing\LazilyRefreshDatabase; use Illuminate\Foundation\Testing\WithoutMiddleware; use Tests\TestCase; use Auth; @@ -12,7 +13,7 @@ use Artisan; abstract class BaseTest extends TestCase { - use DatabaseTransactions; + use LazilyRefreshDatabase; protected function _before() {