mirror of
https://github.com/elyby/oauth2-server.git
synced 2026-11-24 00:13:26 +05:30
Updated tests
This commit is contained in:
1 parent
48dea185d8
commit
c6bc1b0cfc
13 files changed
+115
-101
No files matched your search
@@ -39,10 +39,10 @@ class RefreshTokenTest extends \PHPUnit_Framework_TestCase
|
||||
$accessTokenStorage = M::mock('League\OAuth2\Server\Storage\AccessTokenInterface');
|
||||
$accessTokenStorage->shouldReceive('setServer');
|
||||
$accessTokenStorage->shouldReceive('getByRefreshToken')->andReturn(
|
||||
(new AccessTokenEntity($server))->setToken('foobar')
|
||||
(new AccessTokenEntity($server))->setId('foobar')
|
||||
);
|
||||
$accessTokenStorage->shouldReceive('getScopes')->andReturn([
|
||||
(new ScopeEntity($server))->setId('foo')
|
||||
(new ScopeEntity($server))->hydrate(['id' => 'foo'])
|
||||
]);
|
||||
|
||||
$server->shouldReceive('getStorage')->with('access_token')->andReturn($accessTokenStorage);
|
||||
|
||||
Reference in new issue
Block a user