Skip to content

Commit b63f1e2

Browse files
committed
Test IdToken revocation completely
1 parent d524c95 commit b63f1e2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/Integration/AuthTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,11 @@ public function testRevokeRefreshTokens()
178178

179179
try {
180180
$this->auth->verifyIdToken($idToken, $checkIfRevoked = true);
181+
$this->fail('An exception should have been thrown');
182+
} catch (RevokedIdToken $e) {
183+
$this->assertSame($user->uid, $e->getToken()->getClaim('user_id'));
181184
} catch (Throwable $e) {
182-
$this->assertInstanceOf(RevokedIdToken::class, $e);
185+
$this->fail('A '.RevokedIdToken::class.' should have been thrown');
183186
}
184187

185188
$this->auth->deleteUser($user->uid);

0 commit comments

Comments
 (0)