Skip to content

Commit 701b942

Browse files
committed
Fixed test teardowns.
1 parent 21959f4 commit 701b942

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/TestCase.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
use Illuminate\Contracts\Auth\Factory as AuthManager;
1212
use Illuminate\Database\Schema\{Blueprint, Builder as SchemaBuilder};
1313
use Illuminate\Foundation\Auth\User as Authenticatable;
14-
use Illuminate\Foundation\Testing\{RefreshDatabase, WithFaker};
14+
use Illuminate\Foundation\Testing\{LazilyRefreshDatabase, WithFaker};
1515
use Illuminate\Support\Str;
1616
use Mockery;
1717
use Orchestra\Testbench\TestCase as OrchestraTestCase;
1818

1919
abstract class TestCase extends OrchestraTestCase
2020
{
21-
use RefreshDatabase;
21+
use LazilyRefreshDatabase;
2222
use WithFaker;
2323

2424
/**
@@ -27,6 +27,7 @@ abstract class TestCase extends OrchestraTestCase
2727
public function tearDown(): void
2828
{
2929
Mockery::close();
30+
parent::tearDown();
3031
}
3132

3233
/**

0 commit comments

Comments
 (0)