mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-03 10:41:51 +05:30
100% unit test coverage
This commit is contained in:
parent
d123ba095c
commit
47a5c1ba08
@ -137,6 +137,10 @@ class ResourceServerTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
$server->setIdKey('at');
|
$server->setIdKey('at');
|
||||||
|
|
||||||
|
$server->addEventListener('session.owner', function($event) {
|
||||||
|
$this->assertTrue($event->getSession() instanceof \League\OAuth2\Server\Entity\SessionEntity);
|
||||||
|
});
|
||||||
|
|
||||||
$accessTokenStorage->shouldReceive('get')->andReturn(
|
$accessTokenStorage->shouldReceive('get')->andReturn(
|
||||||
(new AccessTokenEntity($server))->setId('abcdef')
|
(new AccessTokenEntity($server))->setId('abcdef')
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user