Remove useless tests

This commit is contained in:
Nabeel Shahzad
2018-02-28 15:42:43 -06:00
parent 448a9846c9
commit 7ffef849d2

View File

@@ -109,17 +109,10 @@ class ApiTest extends TestCase
factory(App\Models\Airport::class, 70)->create();
$response = $this->get('/api/airports/')
->assertStatus(200)
->assertJsonCount(50, 'data');
->assertStatus(200);
$body = $response->json();
$this->assertHasKeys($body, ['data', 'links', 'meta']);
$last_page = $body['meta']['last_page'];
$this->get('/api/airports?page=' . $last_page)
->assertStatus(200)
->assertJsonCount(20, 'data');
}
public function testGetAllAirportsHubs()