We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3eced3c commit 06b1200Copy full SHA for 06b1200
tests/Support/SupportFacadesHttpTest.php
@@ -55,4 +55,15 @@ public function testFacadeRootIsSharedWhenEnforcingFaking(): void
55
56
$this->assertSame($client, $this->app->make(Factory::class));
57
}
58
+
59
+ public function test_can_set_prevents_to_prevents_stray_requests(): void
60
+ {
61
+ Http::preventStrayRequests(true);
62
+ $this->assertTrue($this->app->make(Factory::class)->preventingStrayRequests());
63
+ $this->assertTrue(Http::preventingStrayRequests());
64
65
+ Http::preventStrayRequests(false);
66
+ $this->assertFalse($this->app->make(Factory::class)->preventingStrayRequests());
67
+ $this->assertFalse(Http::preventingStrayRequests());
68
+ }
69
0 commit comments