Rename 'Airlines' model to 'Airline'
This commit is contained in:
@@ -9,17 +9,7 @@ class AircraftTest extends TestCase
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->setup_data();
|
||||
}
|
||||
|
||||
/**
|
||||
* add the fares to a given aircraft
|
||||
* run the factory for incl the fares
|
||||
*/
|
||||
protected function setup_data()
|
||||
{
|
||||
factory(App\Models\AircraftClass::class)->create();
|
||||
factory(App\Models\Fare::class)->create();
|
||||
$this->addData('aircraft_test');
|
||||
}
|
||||
|
||||
protected function getAircraftClass()
|
||||
|
||||
11
tests/data/aircraft_test.yml
Normal file
11
tests/data/aircraft_test.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
aircraft_classes:
|
||||
- id: 1
|
||||
code: H
|
||||
name: Heavy
|
||||
notes: Heavy Aircraft
|
||||
|
||||
fares:
|
||||
- code: Y
|
||||
name: Economy
|
||||
price: 100
|
||||
capacity: 200
|
||||
Reference in New Issue
Block a user