Updated with new entity names

This commit is contained in:
Alex Bilbie
2014-05-02 17:21:53 +01:00
parent 8fbbc7bd07
commit 97fd115530
18 changed files with 244 additions and 218 deletions

View File

@@ -139,20 +139,20 @@ class ResourceServerTest extends \PHPUnit_Framework_TestCase
$server->setTokenKey('at');
$accessTokenStorage->shouldReceive('get')->andReturn(
(new AccessToken($server))->setToken('abcdef')
(new AccessTokenEntity($server))->setToken('abcdef')
);
$accessTokenStorage->shouldReceive('getScopes')->andReturn([
(new Scope($server))->setId('foo'),
(new Scope($server))->setId('bar')
(new ScopeEntity($server))->setId('foo'),
(new ScopeEntity($server))->setId('bar')
]);
$sessionStorage->shouldReceive('getByAccessToken')->andReturn(
(new Session($server))->setId('foobar')->setOwner('user', 123)
(new SessionEntity($server))->setId('foobar')->setOwner('user', 123)
);
$clientStorage->shouldReceive('getBySession')->andReturn(
(new Client($server))->setId('testapp')
(new ClientEntity($server))->setId('testapp')
);
$request = new \Symfony\Component\HttpFoundation\Request();