Change PIREP states to follow AIDX guidelines

This commit is contained in:
Nabeel Shahzad
2018-04-01 20:18:12 -05:00
parent ee077ffa16
commit 0f521c3af9
5 changed files with 36 additions and 17 deletions

View File

@@ -308,7 +308,7 @@ class AcarsTest extends TestCase
# Check the PIREP state and status
$pirep = $this->getPirep($pirep_id);
$this->assertEquals(PirepState::IN_PROGRESS, $pirep['state']);
$this->assertEquals(PirepStatus::PREFILE, $pirep['status']);
$this->assertEquals(PirepStatus::INITIATED, $pirep['status']);
/**
* Check the fields
@@ -367,7 +367,7 @@ class AcarsTest extends TestCase
# Make sure PIREP state moved into ENROUTE
$pirep = $this->getPirep($pirep_id);
$this->assertEquals(PirepState::IN_PROGRESS, $pirep['state']);
$this->assertEquals(PirepStatus::ENROUTE, $pirep['status']);
$this->assertEquals(PirepStatus::AIRBORNE, $pirep['status']);
$response = $this->get($uri);
$response->assertStatus(200);