From 7525fc088436fdb485c990610f5b4bccdd3ec69c Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Wed, 6 Aug 2014 08:43:08 +0100 Subject: [PATCH] Bug fixes --- tests/unit/Grant/RefreshTokenGrantTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/Grant/RefreshTokenGrantTest.php b/tests/unit/Grant/RefreshTokenGrantTest.php index e3330d6d..d11555b9 100644 --- a/tests/unit/Grant/RefreshTokenGrantTest.php +++ b/tests/unit/Grant/RefreshTokenGrantTest.php @@ -174,7 +174,7 @@ class RefreshTokenGrantTest extends \PHPUnit_Framework_TestCase $accessTokenStorage = M::mock('League\OAuth2\Server\Storage\AccessTokenInterface'); $accessTokenStorage->shouldReceive('setServer'); - $accessTokenStorage->shouldReceive('getByRefreshToken')->andReturn( + $accessTokenStorage->shouldReceive('get')->andReturn( (new AccessTokenEntity($server)) ); $accessTokenStorage->shouldReceive('delete'); @@ -245,7 +245,7 @@ class RefreshTokenGrantTest extends \PHPUnit_Framework_TestCase $accessTokenStorage = M::mock('League\OAuth2\Server\Storage\AccessTokenInterface'); $accessTokenStorage->shouldReceive('setServer'); - $accessTokenStorage->shouldReceive('getByRefreshToken')->andReturn( + $accessTokenStorage->shouldReceive('get')->andReturn( (new AccessTokenEntity($server)) ); $accessTokenStorage->shouldReceive('delete'); @@ -316,7 +316,7 @@ class RefreshTokenGrantTest extends \PHPUnit_Framework_TestCase $accessTokenStorage = M::mock('League\OAuth2\Server\Storage\AccessTokenInterface'); $accessTokenStorage->shouldReceive('setServer'); - $accessTokenStorage->shouldReceive('getByRefreshToken')->andReturn( + $accessTokenStorage->shouldReceive('get')->andReturn( (new AccessTokenEntity($server)) ); $accessTokenStorage->shouldReceive('delete');