Skip to content

Commit 52f4e63

Browse files
committed
Fixed Unit tests when running along Feature tests
1 parent 54cc20a commit 52f4e63

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/DefaultTestCase.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@
66

77
class DefaultTestCase extends BaseTestCase
88
{
9+
protected function setUp(): void
10+
{
11+
parent::setUp();
12+
// Fixes Unit tests failing when running alon Feature tests:
13+
\Illuminate\Support\Facades\Facade::setFacadeApplication(null);
14+
}
915
}

0 commit comments

Comments
 (0)