Skip to content

Commit d656040

Browse files
committed
fixup! changed tests to expected behavior
1 parent ed40813 commit d656040

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/Relay/Connection/AbstractConnectionBuilderTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ protected function assertSameConnection(ConnectionInterface $expectedConnection,
5151
foreach (['getEndCursor', 'getHasNextPage', 'getHasPreviousPage', 'getStartCursor'] as $method) {
5252
$this->assertSame(
5353
$expectedConnection->getPageInfo()->$method(),
54-
$actualConnection->getPageInfo()->$method()
54+
$actualConnection->getPageInfo()->$method(),
55+
sprintf('Asserting failed on method "%s"', $method)
5556
);
5657
}
5758

tests/Relay/Connection/PaginatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ public function testAutoBackward(): void
219219

220220
$this->assertCount(4, $result->getEdges());
221221
$this->assertSameEdgeNodeValue(['B', 'C', 'D', 'E'], $result);
222-
$this->assertTrue($result->getPageInfo()->getHasPreviousPage());
223-
$this->assertTrue($result->getPageInfo()->getHasNextPage()); // on previous page there is still ['A']
222+
$this->assertTrue($result->getPageInfo()->getHasPreviousPage()); // on previous page there is still ['A']
223+
$this->assertFalse($result->getPageInfo()->getHasNextPage());
224224
}
225225

226226
public function testAutoForward(): void

0 commit comments

Comments
 (0)