Total Complexity | 3 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | final class PaginationDataHandlerSpec extends ObjectBehavior |
||
20 | { |
||
21 | function it_is_initializable(): void |
||
22 | { |
||
23 | $this->shouldHaveType(PaginationDataHandler::class); |
||
24 | } |
||
25 | |||
26 | function it_implements_pagination_data_handler_interface(): void |
||
27 | { |
||
28 | $this->shouldHaveType(PaginationDataHandlerInterface::class); |
||
29 | } |
||
30 | |||
31 | function it_retrieves_data(): void |
||
32 | { |
||
33 | $this->retrieveData([])->shouldBeEqualTo([ |
||
34 | PaginationDataHandlerInterface::PAGE_INDEX => 1, |
||
35 | PaginationDataHandlerInterface::LIMIT_INDEX => PaginationDataHandlerInterface::DEFAULT_LIMIT, |
||
36 | ]); |
||
39 |