Expand tests

This commit is contained in:
James Cole
2018-02-19 19:45:13 +01:00
parent 6b32213735
commit e389d0f7fa
3 changed files with 54 additions and 3 deletions

View File

@@ -91,7 +91,7 @@ class AccountControllerTest extends TestCase
$response = $this->get('/api/v1/accounts');
$response->assertStatus(200);
$response->assertJson(['data' => [],]);
$response->assertJson(['meta' => ['pagination' => ['total' => 10, 'count' => 10, 'per_page' => 50, 'current_page' => 1, 'total_pages' => 1]],]);
$response->assertJson(['meta' => ['pagination' => ['total' => 10, 'count' => 10, 'per_page' => true, 'current_page' => 1, 'total_pages' => 1]],]);
$response->assertJson(
['links' => ['self' => true, 'first' => true, 'last' => true,],]
);