File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tests/Unit/Http/Middleware Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public function setUp()
3030 public function testAuthenticatedUserIsRedirected ()
3131 {
3232 $ this ->authManager ->shouldReceive ('guard ' )->with (null )->once ()->andReturnSelf ();
33- $ this ->authManager ->shouldReceive ('check ' )->with ( null )->once ()->andReturn (true );
33+ $ this ->authManager ->shouldReceive ('check ' )->withNoArgs ( )->once ()->andReturn (true );
3434
3535 $ response = $ this ->getMiddleware ()->handle ($ this ->request , $ this ->getClosureAssertions ());
3636 $ this ->assertInstanceOf (RedirectResponse::class, $ response );
@@ -43,7 +43,7 @@ public function testAuthenticatedUserIsRedirected()
4343 public function testNonAuthenticatedUserIsNotRedirected ()
4444 {
4545 $ this ->authManager ->shouldReceive ('guard ' )->with (null )->once ()->andReturnSelf ();
46- $ this ->authManager ->shouldReceive ('check ' )->with ( null )->once ()->andReturn (false );
46+ $ this ->authManager ->shouldReceive ('check ' )->withNoArgs ( )->once ()->andReturn (false );
4747
4848 $ this ->getMiddleware ()->handle ($ this ->request , $ this ->getClosureAssertions ());
4949 }
You can’t perform that action at this time.
0 commit comments