mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-16 02:08:56 +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->addEventListener('session.owner', function($event) {
|
||||
$this->assertTrue($event->getSession() instanceof \League\OAuth2\Server\Entity\SessionEntity);
|
||||
});
|
||||
|
||||
$accessTokenStorage->shouldReceive('get')->andReturn(
|
||||
(new AccessTokenEntity($server))->setId('abcdef')
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user