mirror of
https://github.com/elyby/oauth2-server.git
synced 2026-12-02 20:23:15 +05:30
Throw correct exception when access token is invalid
This commit is contained in:
1 parent
6a0596f40b
commit
61f039366b
2 files changed
+11
-6
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user