Cleanup of the test classes and remove superfluous dependencies

This commit is contained in:
Nabeel Shahzad
2018-02-08 11:07:21 -06:00
parent 48346ae805
commit b4ea82f327
6 changed files with 98 additions and 432 deletions

View File

@@ -22,7 +22,7 @@ class ApiTest extends TestCase
{
$user = factory(User::class)->create();
$uri = $this->u('/user');
$uri = '/api/user';
// Missing auth header
$this->get($uri)->assertStatus(401);
@@ -73,7 +73,7 @@ class ApiTest extends TestCase
$airlines = factory(App\Models\Airline::class, $size)->create();
$res = $this->get($this->u('/airlines'));
$res = $this->get('/api/airlines');
$body = $res->json();
$this->assertCount($size, $body['data']);