From 7ffef849d2a00262ffd85c5aee2ad02a5db3f3c2 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Wed, 28 Feb 2018 15:42:43 -0600 Subject: [PATCH] Remove useless tests --- tests/ApiTest.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tests/ApiTest.php b/tests/ApiTest.php index 4c2c3748..827f0927 100644 --- a/tests/ApiTest.php +++ b/tests/ApiTest.php @@ -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()