Fix tests

This commit is contained in:
Dane Everitt 2017-11-03 18:18:52 -05:00
parent 7882250baf
commit 3daade7fe5
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ class RedirectIfAuthenticatedTest extends MiddlewareTestCase
public function testAuthenticatedUserIsRedirected() public function testAuthenticatedUserIsRedirected()
{ {
$this->authManager->shouldReceive('guard')->with(null)->once()->andReturnSelf(); $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()); $response = $this->getMiddleware()->handle($this->request, $this->getClosureAssertions());
$this->assertInstanceOf(RedirectResponse::class, $response); $this->assertInstanceOf(RedirectResponse::class, $response);
@ -43,7 +43,7 @@ class RedirectIfAuthenticatedTest extends MiddlewareTestCase
public function testNonAuthenticatedUserIsNotRedirected() public function testNonAuthenticatedUserIsNotRedirected()
{ {
$this->authManager->shouldReceive('guard')->with(null)->once()->andReturnSelf(); $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()); $this->getMiddleware()->handle($this->request, $this->getClosureAssertions());
} }