We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 745407b commit 33d492cCopy full SHA for 33d492c
src/Hydra/Tests/Serializer/PartialCollectionViewNormalizerTest.php
@@ -111,7 +111,10 @@ public function testNormalizeWithCursorBasedPagination(): void
111
private function normalizePaginator(bool $partial = false, bool $cursor = false)
112
{
113
$paginatorProphecy = $this->prophesize($partial ? PartialPaginatorInterface::class : PaginatorInterface::class);
114
- $paginatorProphecy->getCurrentPage()->willReturn(3)->shouldBeCalled();
+
115
+ if (!$cursor) {
116
+ $paginatorProphecy->getCurrentPage()->willReturn(3)->shouldBeCalled();
117
+ }
118
119
$decoratedNormalize = ['foo' => 'bar'];
120
0 commit comments