Skip to content

Commit 991b431

Browse files
committed
Fix tests
1 parent cbf268b commit 991b431

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/ConvertKitAPIKeyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ public function testAddSubscribersToFormsWithInvalidSubscriberIDs()
482482

483483
/**
484484
* Test that create_subscribers() returns a ClientException
485-
* when no data is specified, as this is only supported
485+
* when attempting to create subscribers, as this is only supported
486486
* using OAuth.
487487
*
488488
* @since 2.2.0

tests/ConvertKitAPIOAuthTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,13 +438,15 @@ public function testInvalidAPICredentials()
438438
);
439439
$result = $api->get_account();
440440

441+
$this->expectException(ClientException::class);
441442
$api = new ConvertKit_API(
442443
clientID: $_ENV['CONVERTKIT_OAUTH_CLIENT_ID'],
443444
clientSecret: 'fakeClientSecret',
444445
accessToken: $_ENV['CONVERTKIT_OAUTH_ACCESS_TOKEN']
445446
);
446447
$result = $api->get_account();
447448

449+
$this->expectException(ClientException::class);
448450
$api = new ConvertKit_API(
449451
clientID: $_ENV['CONVERTKIT_OAUTH_CLIENT_ID'],
450452
clientSecret: $_ENV['CONVERTKIT_OAUTH_CLIENT_SECRET'],

0 commit comments

Comments
 (0)