mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 09:47:46 +05:30
Bug fixes
This commit is contained in:
parent
06d5b343d6
commit
7525fc0884
@ -174,7 +174,7 @@ class RefreshTokenGrantTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
$accessTokenStorage = M::mock('League\OAuth2\Server\Storage\AccessTokenInterface');
|
$accessTokenStorage = M::mock('League\OAuth2\Server\Storage\AccessTokenInterface');
|
||||||
$accessTokenStorage->shouldReceive('setServer');
|
$accessTokenStorage->shouldReceive('setServer');
|
||||||
$accessTokenStorage->shouldReceive('getByRefreshToken')->andReturn(
|
$accessTokenStorage->shouldReceive('get')->andReturn(
|
||||||
(new AccessTokenEntity($server))
|
(new AccessTokenEntity($server))
|
||||||
);
|
);
|
||||||
$accessTokenStorage->shouldReceive('delete');
|
$accessTokenStorage->shouldReceive('delete');
|
||||||
@ -245,7 +245,7 @@ class RefreshTokenGrantTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
$accessTokenStorage = M::mock('League\OAuth2\Server\Storage\AccessTokenInterface');
|
$accessTokenStorage = M::mock('League\OAuth2\Server\Storage\AccessTokenInterface');
|
||||||
$accessTokenStorage->shouldReceive('setServer');
|
$accessTokenStorage->shouldReceive('setServer');
|
||||||
$accessTokenStorage->shouldReceive('getByRefreshToken')->andReturn(
|
$accessTokenStorage->shouldReceive('get')->andReturn(
|
||||||
(new AccessTokenEntity($server))
|
(new AccessTokenEntity($server))
|
||||||
);
|
);
|
||||||
$accessTokenStorage->shouldReceive('delete');
|
$accessTokenStorage->shouldReceive('delete');
|
||||||
@ -316,7 +316,7 @@ class RefreshTokenGrantTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
$accessTokenStorage = M::mock('League\OAuth2\Server\Storage\AccessTokenInterface');
|
$accessTokenStorage = M::mock('League\OAuth2\Server\Storage\AccessTokenInterface');
|
||||||
$accessTokenStorage->shouldReceive('setServer');
|
$accessTokenStorage->shouldReceive('setServer');
|
||||||
$accessTokenStorage->shouldReceive('getByRefreshToken')->andReturn(
|
$accessTokenStorage->shouldReceive('get')->andReturn(
|
||||||
(new AccessTokenEntity($server))
|
(new AccessTokenEntity($server))
|
||||||
);
|
);
|
||||||
$accessTokenStorage->shouldReceive('delete');
|
$accessTokenStorage->shouldReceive('delete');
|
||||||
|
Loading…
Reference in New Issue
Block a user