From 47a5c1ba08df2293707b1eead196399530d31c80 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Tue, 22 Jul 2014 11:45:19 +0100 Subject: [PATCH] 100% unit test coverage --- tests/unit/ResourceServerTest.php | 4 ++++ 1 file changed, 4 insertions(+) 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') );