Skip to content

Commit db43b70

Browse files
Muhammad AnasSkaelv
authored andcommitted
Update pagination test to reflect real structure returned by IntercomClient::handleRequest()
1 parent 5a42138 commit db43b70

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/IntercomClientTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ public function testPaginationHelper()
5050
$client = new IntercomClient('u', 'p');
5151
$client->setClient($http_client);
5252

53-
$client->nextPage([
54-
'next' => 'https://foo.com'
55-
]);
53+
$pages = new stdClass;
54+
$pages->next = 'https://foo.com';
55+
56+
$client->nextPage($pages);
5657

5758
foreach ($container as $transaction) {
5859
$host = $transaction['request']->getUri()->getHost();

0 commit comments

Comments
 (0)