From e5d124829b78b3e3294b1ee3b13cbbc3a857d109 Mon Sep 17 00:00:00 2001 From: Angger Pradana Date: Sat, 14 Oct 2023 05:11:06 +0000 Subject: [PATCH] add test --- tests/Http/RedirectResponseTest.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/Http/RedirectResponseTest.php diff --git a/tests/Http/RedirectResponseTest.php b/tests/Http/RedirectResponseTest.php new file mode 100644 index 00000000..a219cfba --- /dev/null +++ b/tests/Http/RedirectResponseTest.php @@ -0,0 +1,24 @@ +assertSee('Redirecting to /login'); + $redirect->assertStatusCode(302); + + foreach ($res->getHeaders() as $key => $value) { + if ('Location' === $key) { + $this->assertEquals('/login', $value); + } + } + } +}