From 3daade7fe524ff5fc673eb665b8a1b54a30d95da Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Fri, 3 Nov 2017 18:18:52 -0500 Subject: [PATCH] Fix tests --- tests/Unit/Http/Middleware/RedirectIfAuthenticatedTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Unit/Http/Middleware/RedirectIfAuthenticatedTest.php b/tests/Unit/Http/Middleware/RedirectIfAuthenticatedTest.php index ee56156d9..885108eca 100644 --- a/tests/Unit/Http/Middleware/RedirectIfAuthenticatedTest.php +++ b/tests/Unit/Http/Middleware/RedirectIfAuthenticatedTest.php @@ -30,7 +30,7 @@ class RedirectIfAuthenticatedTest extends MiddlewareTestCase public function testAuthenticatedUserIsRedirected() { $this->authManager->shouldReceive('guard')->with(null)->once()->andReturnSelf(); - $this->authManager->shouldReceive('check')->with(null)->once()->andReturn(true); + $this->authManager->shouldReceive('check')->withNoArgs()->once()->andReturn(true); $response = $this->getMiddleware()->handle($this->request, $this->getClosureAssertions()); $this->assertInstanceOf(RedirectResponse::class, $response); @@ -43,7 +43,7 @@ class RedirectIfAuthenticatedTest extends MiddlewareTestCase public function testNonAuthenticatedUserIsNotRedirected() { $this->authManager->shouldReceive('guard')->with(null)->once()->andReturnSelf(); - $this->authManager->shouldReceive('check')->with(null)->once()->andReturn(false); + $this->authManager->shouldReceive('check')->withNoArgs()->once()->andReturn(false); $this->getMiddleware()->handle($this->request, $this->getClosureAssertions()); }