mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-03 10:41:51 +05:30
Fix broken test
This commit is contained in:
parent
1e78f62823
commit
b694cca743
@ -36,7 +36,7 @@ abstract class AbstractTokenEntity
|
|||||||
* Session scopes
|
* Session scopes
|
||||||
* @var array Array of ScopeEntity
|
* @var array Array of ScopeEntity
|
||||||
*/
|
*/
|
||||||
protected $scopes = [];
|
protected $scopes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Token expire time
|
* Token expire time
|
||||||
|
@ -141,10 +141,10 @@ class ResourceServerTest extends \PHPUnit_Framework_TestCase
|
|||||||
(new AccessTokenEntity($server))->setId('abcdef')
|
(new AccessTokenEntity($server))->setId('abcdef')
|
||||||
);
|
);
|
||||||
|
|
||||||
// $accessTokenStorage->shouldReceive('getScopes')->andReturn([
|
$accessTokenStorage->shouldReceive('getScopes')->andReturn([
|
||||||
// (new ScopeEntity($server))->hydrate(['id' => 'foo']),
|
(new ScopeEntity($server))->hydrate(['id' => 'foo']),
|
||||||
// (new ScopeEntity($server))->hydrate(['id' => 'bar'])
|
(new ScopeEntity($server))->hydrate(['id' => 'bar'])
|
||||||
// ]);
|
]);
|
||||||
|
|
||||||
$sessionStorage->shouldReceive('getByAccessToken')->andReturn(
|
$sessionStorage->shouldReceive('getByAccessToken')->andReturn(
|
||||||
(new SessionEntity($server))->setId('foobar')->setOwner('user', 123)
|
(new SessionEntity($server))->setId('foobar')->setOwner('user', 123)
|
||||||
|
Loading…
Reference in New Issue
Block a user