Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8c2c492

Browse files
committedMay 9, 2025
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

Lines changed: 8 additions & 0 deletions
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)
Please sign in to comment.