Skip to content

Commit

Permalink
Fixed test teardowns.
Browse files Browse the repository at this point in the history
  • Loading branch information
irealworlds committed Apr 16, 2024
1 parent 21959f4 commit 701b942
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
use Illuminate\Contracts\Auth\Factory as AuthManager;
use Illuminate\Database\Schema\{Blueprint, Builder as SchemaBuilder};
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Foundation\Testing\{RefreshDatabase, WithFaker};
use Illuminate\Foundation\Testing\{LazilyRefreshDatabase, WithFaker};
use Illuminate\Support\Str;
use Mockery;
use Orchestra\Testbench\TestCase as OrchestraTestCase;

abstract class TestCase extends OrchestraTestCase
{
use RefreshDatabase;
use LazilyRefreshDatabase;
use WithFaker;

/**
Expand All @@ -27,6 +27,7 @@ abstract class TestCase extends OrchestraTestCase
public function tearDown(): void
{
Mockery::close();
parent::tearDown();
}

/**
Expand Down

0 comments on commit 701b942

Please sign in to comment.