Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions tests/ConvertKitAPITest.php
Original file line number Diff line number Diff line change
Expand Up @@ -722,19 +722,19 @@ 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.
$this->assertDataExists($result, 'subscribers');
$this->assertPaginationExists($result);

// Check the correct subscribers were returned.
$this->assertEquals($result->subscribers[0]->state, 'bounced');
$this->assertEquals($result->subscribers[0]->state, 'cancelled');
}

/**
Expand Down Expand Up @@ -1238,19 +1238,19 @@ 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.
$this->assertDataExists($result, 'subscribers');
$this->assertPaginationExists($result);

// Check the correct subscribers were returned.
$this->assertEquals($result->subscribers[0]->state, 'bounced');
$this->assertEquals($result->subscribers[0]->state, 'cancelled');
}

/**
Expand Down Expand Up @@ -2284,25 +2284,25 @@ 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.
$this->assertDataExists($result, 'subscribers');
$this->assertPaginationExists($result);

// Check the correct subscribers were returned.
$this->assertEquals($result->subscribers[0]->state, 'bounced');
$this->assertEquals($result->subscribers[0]->state, 'cancelled');
}


Expand Down Expand Up @@ -3153,24 +3153,24 @@ 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.
$this->assertDataExists($result, 'subscribers');
$this->assertPaginationExists($result);

// Check the correct subscribers were returned.
$this->assertEquals($result->subscribers[0]->state, 'bounced');
$this->assertEquals($result->subscribers[0]->state, 'cancelled');
}

/**
Expand Down
Loading