| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class PaginationTest extends HttpTest |
||
| 19 | { |
||
| 20 | public function testPaginate(): void |
||
| 21 | { |
||
| 22 | $this->assertSame('1', (string)$this->get('/paginate', [ |
||
| 23 | |||
| 24 | ])->getBody()); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function testPaginateError(): void |
||
| 28 | { |
||
| 29 | $this->expectException(ScopeException::class); |
||
| 30 | |||
| 31 | $this->app->get(PaginationFactory::class)->createPaginator('page'); |
||
| 32 | } |
||
| 33 | |||
| 34 | public function testPaginate2(): void |
||
| 35 | { |
||
| 36 | $this->assertSame('2', (string)$this->get('/paginate', [ |
||
| 37 | 'page' => 2 |
||
| 38 | ])->getBody()); |
||
| 39 | } |
||
| 41 |