Skip to content

Commit 33d492c

Browse files
committed
fix2
1 parent 745407b commit 33d492c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Hydra/Tests/Serializer/PartialCollectionViewNormalizerTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ public function testNormalizeWithCursorBasedPagination(): void
111111
private function normalizePaginator(bool $partial = false, bool $cursor = false)
112112
{
113113
$paginatorProphecy = $this->prophesize($partial ? PartialPaginatorInterface::class : PaginatorInterface::class);
114-
$paginatorProphecy->getCurrentPage()->willReturn(3)->shouldBeCalled();
114+
115+
if (!$cursor) {
116+
$paginatorProphecy->getCurrentPage()->willReturn(3)->shouldBeCalled();
117+
}
115118

116119
$decoratedNormalize = ['foo' => 'bar'];
117120

0 commit comments

Comments
 (0)