100% unit test coverage

This commit is contained in:
Alex Bilbie 2014-07-22 11:45:19 +01:00
parent d123ba095c
commit 47a5c1ba08

View File

@ -137,6 +137,10 @@ class ResourceServerTest extends \PHPUnit_Framework_TestCase
$server->setIdKey('at');
$server->addEventListener('session.owner', function($event) {
$this->assertTrue($event->getSession() instanceof \League\OAuth2\Server\Entity\SessionEntity);
});
$accessTokenStorage->shouldReceive('get')->andReturn(
(new AccessTokenEntity($server))->setId('abcdef')
);