Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Khien committed Jan 7, 2025
1 parent adae7df commit 6970f82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/FacebookAdsTest/CursorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ protected function createSampleResponseContent() {
'after' => $this->getUniquePageId(),
'before' => $this->getUniquePageId(),
),
'next' => $this->createUnparameterizedUrl() . '?after=' . $this->getUniquePageId(),
'previous' => $this->createUnparameterizedUrl() . '?before=' . $this->getUniquePageId(),
),
) + $this->createEmptyResponseContent();

Expand Down Expand Up @@ -94,8 +96,7 @@ protected function createUnparameterizedUrl() {
* @param RequestInterface|null $prev
* @return Mock|ResponseInterface
*/
protected function createResponseChainMock(
$num_pages, RequestInterface $prev = null) {
protected function createResponseChainMock($num_pages, RequestInterface $prev = null) {

$query_params = $prev ? clone $prev->getQueryParams() : new Parameters();
$sample_content = $this->createSampleResponseContent();
Expand Down Expand Up @@ -339,7 +340,6 @@ public function testImplicitFetch() {
$response = $this->createResponseChainMock(3);
$cursor = new Cursor($response, $this->objectPrototype);

$count = 0;
while ($cursor->valid()) {
$cursor->prev();
}
Expand Down

0 comments on commit 6970f82

Please sign in to comment.