Skip to content

Commit 54bf2a8

Browse files
committed
Fix failing tests
1 parent 2a33578 commit 54bf2a8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/ConvertKit_API.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,7 @@ public function get_sequence_subscriptions(
628628
endpoint: sprintf('sequences/%s/subscribers', $sequence_id),
629629
args: $this->build_total_count_and_pagination_params(
630630
params: $options,
631+
include_total_count: $include_total_count,
631632
after_cursor: $after_cursor,
632633
before_cursor: $before_cursor,
633634
per_page: $per_page

tests/ConvertKitAPITest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ public function testGetSequenceSubscriptions()
12601260
*
12611261
* @return void
12621262
*/
1263-
public function testGetSequencesWithTotalCount()
1263+
public function testGetSequenceSubscriptionsWithTotalCount()
12641264
{
12651265
$result = $this->api->get_sequence_subscriptions(
12661266
sequence_id: $_ENV['CONVERTKIT_API_SEQUENCE_ID'],
@@ -2057,8 +2057,8 @@ public function testGetTagSubscriptionsWithTotalCount()
20572057
include_total_count: true
20582058
);
20592059

2060-
// Assert tags and pagination exist.
2061-
$this->assertDataExists($result, 'tags');
2060+
// Assert subscribers and pagination exist.
2061+
$this->assertDataExists($result, 'subscribers');
20622062
$this->assertPaginationExists($result);
20632063

20642064
// Assert total count is included.

0 commit comments

Comments
 (0)