Skip to content

Commit 8c2c492

Browse files
committed
Prevent stray requests in tests
1 parent d5df74b commit 8c2c492

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/TestCase.php

+8
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,16 @@
33
namespace Tests;
44

55
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
6+
use Illuminate\Support\Facades\Http;
67

78
abstract class TestCase extends BaseTestCase
89
{
910
use CreatesApplication;
11+
12+
protected function setUp(): void
13+
{
14+
parent::setUp();
15+
16+
Http::preventStrayRequests();
17+
}
1018
}

0 commit comments

Comments
 (0)