Throw correct exception when access token is invalid

This commit is contained in:
Alex Bilbie
2014-05-08 10:29:40 +01:00
parent 6a0596f40b
commit 61f039366b
2 changed files with 11 additions and 6 deletions

View File

@@ -110,8 +110,8 @@ class ResourceServerTest extends \PHPUnit_Framework_TestCase
$scopeStorage
);
$this->setExpectedException('League\OAuth2\Server\Exception\InvalidRequestException');
$server->isValidRequest();
$this->setExpectedException('League\OAuth2\Server\Exception\AccessDeniedException');
$server->isValidRequest(false, 'foobar');
}
public function testIsValid()