From 45d6c800a8dea389d9f3d0a334670aa64cd8da4d Mon Sep 17 00:00:00 2001 From: Ollie Read Date: Tue, 19 Nov 2024 12:56:04 +0000 Subject: [PATCH] chore: Add RefreshDatabase trait to relevant tests --- tests/Unit/Support/DefaultTenancyTest.php | 3 +++ tests/Unit/Support/ResolutionHelperTest.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tests/Unit/Support/DefaultTenancyTest.php b/tests/Unit/Support/DefaultTenancyTest.php index a0cfc51..f152494 100644 --- a/tests/Unit/Support/DefaultTenancyTest.php +++ b/tests/Unit/Support/DefaultTenancyTest.php @@ -3,6 +3,7 @@ namespace Sprout\Tests\Unit\Support; +use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Support\Facades\Event; use PHPUnit\Framework\Attributes\Test; use Sprout\Events\TenantIdentified; @@ -17,6 +18,8 @@ class DefaultTenancyTest extends UnitTestCase { + use RefreshDatabase; + protected function defineEnvironment($app): void { tap($app['config'], static function ($config) { diff --git a/tests/Unit/Support/ResolutionHelperTest.php b/tests/Unit/Support/ResolutionHelperTest.php index 5385696..91875b5 100644 --- a/tests/Unit/Support/ResolutionHelperTest.php +++ b/tests/Unit/Support/ResolutionHelperTest.php @@ -3,6 +3,7 @@ namespace Sprout\Tests\Unit\Support; +use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Http\Request; use Illuminate\Routing\Route; use Mockery\MockInterface; @@ -19,6 +20,8 @@ class ResolutionHelperTest extends UnitTestCase { + use RefreshDatabase; + protected function defineEnvironment($app): void { tap($app['config'], static function ($config) {