From 080e8842acb1fc8fd885afb0845449b3c83fd7d8 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Tue, 2 Jan 2018 11:19:11 -0600 Subject: [PATCH] generate nav point name --- app/Database/factories/NavdataFactory.php | 2 +- tests/DuskTestCase.php | 43 ----------------------- tests/PIREPTest.php | 1 - 3 files changed, 1 insertion(+), 45 deletions(-) delete mode 100644 tests/DuskTestCase.php diff --git a/app/Database/factories/NavdataFactory.php b/app/Database/factories/NavdataFactory.php index f9916e80..be3191d5 100644 --- a/app/Database/factories/NavdataFactory.php +++ b/app/Database/factories/NavdataFactory.php @@ -5,7 +5,7 @@ use \App\Models\Enums\NavaidType; $factory->define(App\Models\Navdata::class, function (Faker $faker) { return [ - 'id' => str_replace('.', '', $faker->unique()->text(5)), + 'id' => str_replace(' ', '', str_replace('.', '', $faker->unique()->text(5))), 'name' => $faker->unique()->text(10), 'type' => $faker->randomElement([NavaidType::VOR, NavaidType::NDB]), 'lat' => $faker->latitude, diff --git a/tests/DuskTestCase.php b/tests/DuskTestCase.php deleted file mode 100644 index 1261c7a6..00000000 --- a/tests/DuskTestCase.php +++ /dev/null @@ -1,43 +0,0 @@ -addArguments([ - '--disable-gpu', - '--headless' - ]); - - return RemoteWebDriver::create( - 'http://localhost:9515', DesiredCapabilities::chrome()->setCapability( - ChromeOptions::CAPABILITY, $options - ) - ); - } -} diff --git a/tests/PIREPTest.php b/tests/PIREPTest.php index 95d0b465..f06bb0e3 100644 --- a/tests/PIREPTest.php +++ b/tests/PIREPTest.php @@ -75,7 +75,6 @@ class PIREPTest extends TestCase $this->assertEquals($new_pirep_count, $pirep->pilot->flights); $this->assertEquals($new_flight_time, $pirep->pilot->flight_time); $this->assertEquals($pirep->arr_airport_id, $pirep->pilot->curr_airport_id); - #$this->assertEquals(1, $pirep->pilot->rank_id); /** * Now go from ACCEPTED to REJECTED