File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -239,6 +239,7 @@ class: $class,
239
239
paginationClientPartial: $ paginationClientPartial ,
240
240
paginationFetchJoinCollection: $ paginationFetchJoinCollection ,
241
241
paginationUseOutputWalkers: $ paginationUseOutputWalkers ,
242
+ paginationViaCursor: $ paginationViaCursor ,
242
243
order: $ order ,
243
244
description: $ description ,
244
245
normalizationContext: $ normalizationContext ,
Original file line number Diff line number Diff line change @@ -60,4 +60,13 @@ public static function operationProvider(): \Generator
60
60
yield [new Mutation (...$ args )];
61
61
yield [new Subscription (...$ args )];
62
62
}
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
+ }
63
72
}
You can’t perform that action at this time.
0 commit comments