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