Skip to content

Commit

Permalink
chore: Add RefreshDatabase trait to relevant tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ollieread committed Nov 19, 2024
1 parent f6eaf00 commit 45d6c80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Unit/Support/DefaultTenancyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -17,6 +18,8 @@

class DefaultTenancyTest extends UnitTestCase
{
use RefreshDatabase;

protected function defineEnvironment($app): void
{
tap($app['config'], static function ($config) {
Expand Down
3 changes: 3 additions & 0 deletions tests/Unit/Support/ResolutionHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -19,6 +20,8 @@

class ResolutionHelperTest extends UnitTestCase
{
use RefreshDatabase;

protected function defineEnvironment($app): void
{
tap($app['config'], static function ($config) {
Expand Down

0 comments on commit 45d6c80

Please sign in to comment.