diff --git a/tests/ConvertKitAPITest.php b/tests/ConvertKitAPITest.php index 6c48680..8bc3b5e 100644 --- a/tests/ConvertKitAPITest.php +++ b/tests/ConvertKitAPITest.php @@ -722,11 +722,11 @@ public function testGetFormSubscriptionsWithTotalCount() * * @return void */ - public function testGetFormSubscriptionsWithBouncedSubscriberState() + public function testGetFormSubscriptionsWithCancelledSubscriberState() { $result = $this->api->get_form_subscriptions( form_id: (int) $_ENV['CONVERTKIT_API_FORM_ID'], - subscriber_state: 'bounced' + subscriber_state: 'cancelled' ); // Assert subscribers and pagination exist. @@ -734,7 +734,7 @@ public function testGetFormSubscriptionsWithBouncedSubscriberState() $this->assertPaginationExists($result); // Check the correct subscribers were returned. - $this->assertEquals($result->subscribers[0]->state, 'bounced'); + $this->assertEquals($result->subscribers[0]->state, 'cancelled'); } /** @@ -1238,11 +1238,11 @@ public function testGetSequenceSubscriptionsWithTotalCount() * * @return void */ - public function testGetSequenceSubscriptionsWithBouncedSubscriberState() + public function testGetSequenceSubscriptionsWithCancelledSubscriberState() { $result = $this->api->get_sequence_subscriptions( sequence_id: (int) $_ENV['CONVERTKIT_API_SEQUENCE_ID'], - subscriber_state: 'bounced' + subscriber_state: 'cancelled' ); // Assert subscribers and pagination exist. @@ -1250,7 +1250,7 @@ public function testGetSequenceSubscriptionsWithBouncedSubscriberState() $this->assertPaginationExists($result); // Check the correct subscribers were returned. - $this->assertEquals($result->subscribers[0]->state, 'bounced'); + $this->assertEquals($result->subscribers[0]->state, 'cancelled'); } /** @@ -2284,17 +2284,17 @@ public function testGetTagSubscriptionsWithTotalCount() /** * Test that get_tag_subscriptions() returns the expected data * when a valid Tag ID is specified and the subscription status - * is bounced. + * is cancelled. * * @since 1.0.0 * * @return void */ - public function testGetTagSubscriptionsWithBouncedSubscriberState() + public function testGetTagSubscriptionsWithCancelledSubscriberState() { $result = $this->api->get_tag_subscriptions( tag_id: (int) $_ENV['CONVERTKIT_API_TAG_ID'], - subscriber_state: 'bounced' + subscriber_state: 'cancelled' ); // Assert subscribers and pagination exist. @@ -2302,7 +2302,7 @@ public function testGetTagSubscriptionsWithBouncedSubscriberState() $this->assertPaginationExists($result); // Check the correct subscribers were returned. - $this->assertEquals($result->subscribers[0]->state, 'bounced'); + $this->assertEquals($result->subscribers[0]->state, 'cancelled'); } @@ -3153,16 +3153,16 @@ public function testGetSubscribersByEmailAddress() /** * Test that get_subscribers() returns the expected data - * when the subscription status is bounced. + * when the subscription status is cancelled. * * @since 1.0.0 * * @return void */ - public function testGetSubscribersWithBouncedSubscriberState() + public function testGetSubscribersWithCancelledSubscriberState() { $result = $this->api->get_subscribers( - subscriber_state: 'bounced' + subscriber_state: 'cancelled' ); // Assert subscribers and pagination exist. @@ -3170,7 +3170,7 @@ public function testGetSubscribersWithBouncedSubscriberState() $this->assertPaginationExists($result); // Check the correct subscribers were returned. - $this->assertEquals($result->subscribers[0]->state, 'bounced'); + $this->assertEquals($result->subscribers[0]->state, 'cancelled'); } /**