write the route if it hasn't been set by acars #184

This commit is contained in:
Nabeel Shahzad
2018-02-10 16:10:19 -06:00
parent 7a6b228d8f
commit 5a89b4f194
5 changed files with 18 additions and 7 deletions

View File

@@ -189,7 +189,7 @@ class AcarsTest extends TestCase
# File the PIREP now
$uri = '/api/pireps/'.$pirep_id.'/file';
$response = $this->post($uri, []);
$response->assertStatus(400); // missing the flight time
$response->assertStatus(400); // missing field
$response = $this->post($uri, ['flight_time' => '1:30']);
$response->assertStatus(400); // invalid flight time