File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ' ],
You can’t perform that action at this time.
0 commit comments