Skip to content

Commit

Permalink
fix authcode test, forgot one
Browse files Browse the repository at this point in the history
  • Loading branch information
kristen-kagei committed Oct 31, 2019
1 parent eef03d5 commit 70b8f60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/AuthCodeControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,14 +274,14 @@ public function testCompleteAuthorizationGrantWithSwapAuthCodeBadState()

DI::container()->set(Client::class, $client);

$mockStorage = $this->getMock(StorageInterface::class);
$mockStorage = $this->createMock(StorageInterface::class);
$mockStorage->method('compare')->willReturn(false);

$this->expectException(\Exception::class);

$controller = new AuthCodeController();
$controller->setConfigProvider($this->mockConfig);
$controller->setStorageProvider($mockStorage);
$controller->setStorageProvider($this->mockStorage);

$controller->completeAuthorizationGrant('fake_grant_code', 'fake:state');
}
Expand Down

0 comments on commit 70b8f60

Please sign in to comment.