Remove useless tests
This commit is contained in:
@@ -109,17 +109,10 @@ class ApiTest extends TestCase
|
|||||||
factory(App\Models\Airport::class, 70)->create();
|
factory(App\Models\Airport::class, 70)->create();
|
||||||
|
|
||||||
$response = $this->get('/api/airports/')
|
$response = $this->get('/api/airports/')
|
||||||
->assertStatus(200)
|
->assertStatus(200);
|
||||||
->assertJsonCount(50, 'data');
|
|
||||||
|
|
||||||
$body = $response->json();
|
$body = $response->json();
|
||||||
|
|
||||||
$this->assertHasKeys($body, ['data', 'links', 'meta']);
|
$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()
|
public function testGetAllAirportsHubs()
|
||||||
|
|||||||
Reference in New Issue
Block a user