Skip to content

Commit 7c94cab

Browse files
committed
Fix connection builder test
1 parent d15df3d commit 7c94cab

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/Relay/Connection/ConnectionBuilderTest.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -271,15 +271,13 @@ public function testReturnsAllElementsIfCursorsAreOnTheOutside(): void
271271

272272
public function testReturnsNoElementsIfCursorsCross(): void
273273
{
274-
$actual = call_user_func(
274+
$this->expectException(InvalidArgumentException::class);
275+
$this->expectExceptionMessage('Arguments "before" and "after" cannot be intersected');
276+
call_user_func(
275277
[static::getBuilder(), 'connectionFromArray'],
276278
$this->letters,
277279
['before' => 'YXJyYXljb25uZWN0aW9uOjI=', 'after' => 'YXJyYXljb25uZWN0aW9uOjQ=']
278280
);
279-
280-
$expected = $this->getExpectedConnection([], false, false);
281-
282-
$this->assertSameConnection($expected, $actual);
283281
}
284282

285283
/**

0 commit comments

Comments
 (0)