| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 10 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 15 | protected function assertPaginationFormat(TestResponse $response, $expectedCount, $expectedTotal) | ||
| 16 |     { | ||
| 17 | $response->assertStatus(Response::HTTP_OK); | ||
| 18 | $this->assertCount( | ||
|  | |||
| 19 | $expectedCount, | ||
| 20 | json_decode($response->getContent(), true)['data'], | ||
| 21 | 'Pagination is failing. The number of entities returned doesn\'t match the expected ' | ||
| 22 | . $expectedCount | ||
| 23 | ); | ||
| 24 | $this->assertPaginationResponseStructure($response, $expectedTotal); | ||
| 25 | } | ||
| 62 |