Return null on empty value

This commit is contained in:
Nabeel Shahzad
2021-01-25 17:03:48 -05:00
parent 3f92191126
commit bda1a91117
3 changed files with 8 additions and 7 deletions

View File

@@ -652,8 +652,8 @@ class ImporterTest extends TestCase
$this->assertEquals(true, $airport->hub);
$this->assertEquals('30.1945', $airport->lat);
$this->assertEquals('-97.6699', $airport->lon);
$this->assertEquals(0.0, $airport->ground_handling_cost);
$this->assertEquals(setting('airports.default_jet_a_fuel_cost'), $airport->fuel_jeta_cost);
$this->assertEquals(250, $airport->ground_handling_cost);
$this->assertEquals(0.8, $airport->fuel_jeta_cost); // should be updated
// See if it imported
$airport = Airport::where([