Skip to content

Commit bf2b64e

Browse files
committed
Change ServerException to ClientException for refresh token with invalid token
1 parent 7bc6eaa commit bf2b64e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/ConvertKitAPIOAuthTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ public function testRefreshToken()
401401
}
402402

403403
/**
404-
* Test that a ServerException is thrown when an invalid refresh token is supplied
404+
* Test that a ClientException is thrown when an invalid refresh token is supplied
405405
* when refreshing an access token.
406406
*
407407
* @since 2.0.0
@@ -410,7 +410,7 @@ public function testRefreshToken()
410410
*/
411411
public function testRefreshTokenWithInvalidToken()
412412
{
413-
$this->expectException(ServerException::class);
413+
$this->expectException(ClientException::class);
414414
$api = new ConvertKit_API(
415415
clientID: $_ENV['CONVERTKIT_OAUTH_CLIENT_ID'],
416416
clientSecret: $_ENV['CONVERTKIT_OAUTH_CLIENT_SECRET']

0 commit comments

Comments
 (0)