public function Auth0Test::testThatRenewTokensFailsIfThereIsNoAccessToken in Auth0 Single Sign On 8.2
Test that renewTokens fails if there is no access_token stored.
Throws
ApiException Should not be thrown in this test.
File
- vendor/
auth0/ auth0-php/ tests/ Auth0Test.php, line 163
Class
- Auth0Test
- Class Auth0Test
Namespace
Auth0\TestsCode
public function testThatRenewTokensFailsIfThereIsNoAccessToken() {
$auth0 = new Auth0(self::$baseConfig);
try {
$caught_exception = false;
$auth0
->renewTokens();
} catch (CoreException $e) {
$caught_exception = $this
->errorHasString($e, "Can't renew the access token if there isn't one valid");
}
$this
->assertTrue($caught_exception);
}