Skip to content

Commit 86a3c6f

Browse files
committed
add test
1 parent 2f59086 commit 86a3c6f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Metadata/Tests/Resource/OperationTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,13 @@ public static function operationProvider(): \Generator
6060
yield [new Mutation(...$args)];
6161
yield [new Subscription(...$args)];
6262
}
63+
64+
public function testPaginationViaCursor(): void
65+
{
66+
$operation = (new GetCollection())->withPaginationViaCursor(true);
67+
$this->assertTrue($operation->canPaginateViaCursor());
68+
69+
$operation = (new GetCollection())->withPaginationViaCursor(false);
70+
$this->assertFalse($operation->canPaginateViaCursor());
71+
}
6372
}

0 commit comments

Comments
 (0)