@@ -145,8 +145,10 @@ public function applyCollectionWithPaginationProvider(): array
145145 '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 ]]],
146146 '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 ]]],
147147 'paginator with bad after cursor ' => [new ArrayPaginator ([], 0 , 0 ), ['after ' => '- ' ], null , Error::class, 'Cursor - is invalid ' ],
148+ 'paginator with empty after cursor ' => [new ArrayPaginator ([], 0 , 0 ), ['after ' => '' ], null , Error::class, 'Empty cursor is invalid ' ],
148149 '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 ]]],
149150 'paginator with bad before cursor ' => [new ArrayPaginator ([], 0 , 0 ), ['before ' => '- ' ], null , Error::class, 'Cursor - is invalid ' ],
151+ 'paginator with empty before cursor ' => [new ArrayPaginator ([], 0 , 0 ), ['before ' => '' ], null , Error::class, 'Empty cursor is invalid ' ],
150152 '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 ]]],
151153 ];
152154 }
0 commit comments