Skip to content

Commit 2505f9f

Browse files
committed
Merge remote-tracking branch 'origin/fix-tests' into fix-api-docs
2 parents fbc73e2 + bf2b64e commit 2505f9f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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']

tests/ConvertKitAPITest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1408,7 +1408,7 @@ public function testGetSequenceSubscriptionsPagination()
14081408

14091409
// Assert has_previous_page and has_next_page are correct.
14101410
$this->assertTrue($result->pagination->has_previous_page);
1411-
$this->assertFalse($result->pagination->has_next_page);
1411+
$this->assertTrue($result->pagination->has_next_page);
14121412

14131413
// Use pagination to fetch previous page.
14141414
$result = $this->api->get_sequence_subscriptions(

0 commit comments

Comments
 (0)