@@ -438,7 +438,7 @@ public function testUnauthenticatedRedirect()
438438 };
439439
440440 $ response = $ middleware ($ request , $ response , $ next );
441- $ this ->assertSame (301 , $ response ->getStatusCode ());
441+ $ this ->assertSame (302 , $ response ->getStatusCode ());
442442 $ this ->assertSame ('/users/login ' , $ response ->getHeaderLine ('Location ' ));
443443 $ this ->assertSame ('' , $ response ->getBody () . '' );
444444 }
@@ -467,7 +467,7 @@ public function testUnauthenticatedRedirectWithQuery()
467467 };
468468
469469 $ response = $ middleware ($ request , $ response , $ next );
470- $ this ->assertSame (301 , $ response ->getStatusCode ());
470+ $ this ->assertSame (302 , $ response ->getStatusCode ());
471471 $ this ->assertSame ('/users/login?redirect=http%3A%2F%2Flocalhost%2Ftestpath ' , $ response ->getHeaderLine ('Location ' ));
472472 $ this ->assertSame ('' , $ response ->getBody () . '' );
473473 }
@@ -496,7 +496,7 @@ public function testUnauthenticatedRedirectWithExistingQuery()
496496 };
497497
498498 $ response = $ middleware ($ request , $ response , $ next );
499- $ this ->assertSame (301 , $ response ->getStatusCode ());
499+ $ this ->assertSame (302 , $ response ->getStatusCode ());
500500 $ this ->assertSame ('/users/login?hello=world&redirect=http%3A%2F%2Flocalhost%2Ftestpath ' , $ response ->getHeaderLine ('Location ' ));
501501 $ this ->assertSame ('' , $ response ->getBody () . '' );
502502 }
0 commit comments