@@ -145,7 +145,7 @@ public function applyCollectionWithPaginationProvider(): array
145
145
'paginator ' => [new ArrayPaginator ([new \stdClass (), new \stdClass (), new \stdClass ()], 0 , 2 ), [], ['totalCount ' => 3. , 'edges ' => [['node ' => ['normalized_item ' ], 'cursor ' => 'MA== ' ], ['node ' => ['normalized_item ' ], 'cursor ' => 'MQ== ' ]], 'pageInfo ' => ['startCursor ' => 'MA== ' , 'endCursor ' => 'MQ== ' , 'hasNextPage ' => true , 'hasPreviousPage ' => false ]]],
146
146
'paginator with after cursor ' => [new ArrayPaginator ([new \stdClass (), new \stdClass (), new \stdClass ()], 1 , 2 ), ['after ' => 'MA== ' ], ['totalCount ' => 3. , 'edges ' => [['node ' => ['normalized_item ' ], 'cursor ' => 'MQ== ' ], ['node ' => ['normalized_item ' ], 'cursor ' => 'Mg== ' ]], 'pageInfo ' => ['startCursor ' => 'MQ== ' , 'endCursor ' => 'Mg== ' , 'hasNextPage ' => false , 'hasPreviousPage ' => true ]]],
147
147
'paginator with bad after cursor ' => [new ArrayPaginator ([], 0 , 0 ), ['after ' => '- ' ], null , Error::class, 'Cursor - is invalid ' ],
148
- 'paginator with before cursor ' => [new ArrayPaginator ([new \stdClass (), new \stdClass (), new \stdClass ()], 1 , 1 ), ['before ' => 'Mg== ' ], ['totalCount ' => 3. , 'edges ' => [['node ' => ['normalized_item ' ], 'cursor ' => 'MQ== ' ]], 'pageInfo ' => ['startCursor ' => 'MQ== ' , 'endCursor ' => 'MQ== ' , 'hasNextPage ' => false , 'hasPreviousPage ' => true ]]],
148
+ 'paginator with before cursor ' => [new ArrayPaginator ([new \stdClass (), new \stdClass (), new \stdClass ()], 1 , 1 ), ['before ' => 'Mg== ' ], ['totalCount ' => 3. , 'edges ' => [['node ' => ['normalized_item ' ], 'cursor ' => 'MQ== ' ]], 'pageInfo ' => ['startCursor ' => 'MQ== ' , 'endCursor ' => 'MQ== ' , 'hasNextPage ' => true , 'hasPreviousPage ' => true ]]],
149
149
'paginator with bad before cursor ' => [new ArrayPaginator ([], 0 , 0 ), ['before ' => '- ' ], null , Error::class, 'Cursor - is invalid ' ],
150
150
'paginator with last ' => [new ArrayPaginator ([new \stdClass (), new \stdClass (), new \stdClass ()], 1 , 2 ), ['last ' => 2 ], ['totalCount ' => 3. , 'edges ' => [['node ' => ['normalized_item ' ], 'cursor ' => 'MQ== ' ], ['node ' => ['normalized_item ' ], 'cursor ' => 'Mg== ' ]], 'pageInfo ' => ['startCursor ' => 'MQ== ' , 'endCursor ' => 'Mg== ' , 'hasNextPage ' => false , 'hasPreviousPage ' => true ]]],
151
151
];
0 commit comments