Replaced laminas-paginator with pagerfanta

This commit is contained in:
Alejandro Celaya
2021-01-23 14:37:34 +01:00
parent 088e361228
commit 55ddc4ae75
25 changed files with 63 additions and 61 deletions

View File

@@ -83,7 +83,7 @@ class VisitsTrackerTest extends TestCase
$paginator = $this->visitsTracker->info(new ShortUrlIdentifier($shortCode), new VisitsParams(), $apiKey);
self::assertEquals($list, ArrayUtils::iteratorToArray($paginator->getCurrentItems()));
self::assertEquals($list, ArrayUtils::iteratorToArray($paginator->getCurrentPageResults()));
$count->shouldHaveBeenCalledOnce();
}
@@ -137,7 +137,7 @@ class VisitsTrackerTest extends TestCase
$paginator = $this->visitsTracker->visitsForTag($tag, new VisitsParams(), $apiKey);
self::assertEquals($list, ArrayUtils::iteratorToArray($paginator->getCurrentItems()));
self::assertEquals($list, ArrayUtils::iteratorToArray($paginator->getCurrentPageResults()));
$tagExists->shouldHaveBeenCalledOnce();
$getRepo->shouldHaveBeenCalledOnce();
}