tests on all airport fields
This commit is contained in:
parent
9eb8ed1804
commit
8fb239fb8f
@ -553,6 +553,7 @@ class ImporterTest extends TestCase
|
|||||||
|
|
||||||
$this->assertNotNull($aircraft);
|
$this->assertNotNull($aircraft);
|
||||||
$this->assertEquals($subfleet->id, $aircraft->id);
|
$this->assertEquals($subfleet->id, $aircraft->id);
|
||||||
|
$this->assertEquals($subfleet->type, $aircraft->subfleet->type);
|
||||||
$this->assertEquals('A320-211', $aircraft->name);
|
$this->assertEquals('A320-211', $aircraft->name);
|
||||||
$this->assertEquals('N309US', $aircraft->registration);
|
$this->assertEquals('N309US', $aircraft->registration);
|
||||||
$this->assertEquals('A', $aircraft->status);
|
$this->assertEquals('A', $aircraft->status);
|
||||||
@ -579,6 +580,13 @@ class ImporterTest extends TestCase
|
|||||||
$this->assertEquals('KAUS', $airport->id);
|
$this->assertEquals('KAUS', $airport->id);
|
||||||
$this->assertEquals('AUS', $airport->iata);
|
$this->assertEquals('AUS', $airport->iata);
|
||||||
$this->assertEquals('KAUS', $airport->icao);
|
$this->assertEquals('KAUS', $airport->icao);
|
||||||
|
$this->assertEquals('Austin-Bergstrom', $airport->name);
|
||||||
|
$this->assertEquals('Austin, Texas, USA', $airport->location);
|
||||||
|
$this->assertEquals('United States', $airport->country);
|
||||||
|
$this->assertEquals('America/Chicago', $airport->timezone);
|
||||||
|
$this->assertEquals(true, $airport->hub);
|
||||||
|
$this->assertEquals('30.1945', $airport->lat);
|
||||||
|
$this->assertEquals('-97.6699', $airport->lon);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user