Add /api/airports with pagination to return all the airports #120

This commit is contained in:
Nabeel Shahzad
2018-01-05 10:23:26 -06:00
parent e04fa2e056
commit e931310dee
6 changed files with 52 additions and 3 deletions

View File

@@ -95,4 +95,15 @@ abstract class TestCase extends Illuminate\Foundation\Testing\TestCase
$this->assertArrayHasKey($key, $obj);
}
}
/**
* Shortcut for a get call with a user
* @param \App\Models\User $user
* @param string $uri
* @return \Illuminate\Foundation\Testing\TestResponse
*/
public function user_get($user, $uri)
{
return $this->withHeaders($this->headers($user))->get($uri);
}
}