diff --git a/tests/unit/ResourceServerTest.php b/tests/unit/ResourceServerTest.php index 7eb957f8..7fce1600 100644 --- a/tests/unit/ResourceServerTest.php +++ b/tests/unit/ResourceServerTest.php @@ -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') );