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 d15df3d commit 7c94cabCopy full SHA for 7c94cab
tests/Relay/Connection/ConnectionBuilderTest.php
@@ -271,15 +271,13 @@ public function testReturnsAllElementsIfCursorsAreOnTheOutside(): void
271
272
public function testReturnsNoElementsIfCursorsCross(): void
273
{
274
- $actual = call_user_func(
+ $this->expectException(InvalidArgumentException::class);
275
+ $this->expectExceptionMessage('Arguments "before" and "after" cannot be intersected');
276
+ call_user_func(
277
[static::getBuilder(), 'connectionFromArray'],
278
$this->letters,
279
['before' => 'YXJyYXljb25uZWN0aW9uOjI=', 'after' => 'YXJyYXljb25uZWN0aW9uOjQ=']
280
);
-
- $expected = $this->getExpectedConnection([], false, false);
281
282
- $this->assertSameConnection($expected, $actual);
283
}
284
285
/**
0 commit comments