Allow nullable field and calculate distance if nulled for flight import #478 (#482)

This commit is contained in:
Nabeel S
2019-12-25 17:16:34 +05:00
committed by GitHub
parent 17637c32d4
commit 4f4d0c266a
3 changed files with 11 additions and 6 deletions

View File

@@ -19,9 +19,6 @@ use App\Services\ImportExport\FlightExporter;
use App\Services\ImportService;
use Illuminate\Validation\ValidationException;
/**
* Class ImporterTest
*/
class ImporterTest extends TestCase
{
private $importBaseClass;
@@ -470,7 +467,7 @@ class ImporterTest extends TestCase
$file_path = base_path('tests/data/flights.csv');
$status = $this->importSvc->importFlights($file_path);
$this->assertCount(1, $status['success']);
$this->assertCount(2, $status['success']);
$this->assertCount(1, $status['errors']);
// See if it imported