Fix broken test

This commit is contained in:
Alex Bilbie 2014-07-12 08:58:18 +01:00
parent 1e78f62823
commit b694cca743
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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)