File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -482,7 +482,7 @@ public function testAddSubscribersToFormsWithInvalidSubscriberIDs()
482
482
483
483
/**
484
484
* 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
486
486
* using OAuth.
487
487
*
488
488
* @since 2.2.0
Original file line number Diff line number Diff line change @@ -438,13 +438,15 @@ public function testInvalidAPICredentials()
438
438
);
439
439
$ result = $ api ->get_account ();
440
440
441
+ $ this ->expectException (ClientException::class);
441
442
$ api = new ConvertKit_API (
442
443
clientID: $ _ENV ['CONVERTKIT_OAUTH_CLIENT_ID ' ],
443
444
clientSecret: 'fakeClientSecret ' ,
444
445
accessToken: $ _ENV ['CONVERTKIT_OAUTH_ACCESS_TOKEN ' ]
445
446
);
446
447
$ result = $ api ->get_account ();
447
448
449
+ $ this ->expectException (ClientException::class);
448
450
$ api = new ConvertKit_API (
449
451
clientID: $ _ENV ['CONVERTKIT_OAUTH_CLIENT_ID ' ],
450
452
clientSecret: $ _ENV ['CONVERTKIT_OAUTH_CLIENT_SECRET ' ],
You can’t perform that action at this time.
0 commit comments