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 2b5d80b commit 8c213beCopy full SHA for 8c213be
tests/Testing/TestResponseTest.php
@@ -1656,6 +1656,15 @@ public function testAssertRedirectContains()
1656
$response->assertRedirectContains('url.net');
1657
}
1658
1659
+ public function testAssertRedirect()
1660
+ {
1661
+ $response = TestResponse::fromBaseResponse(
1662
+ (new Response('', 302))->withHeaders(['Location' => 'https://url.com'])
1663
+ );
1664
+
1665
+ $response->assertRedirect();
1666
+ }
1667
1668
public function testGetDecryptedCookie()
1669
{
1670
$response = TestResponse::fromBaseResponse(
0 commit comments