From 59302ded0f02b3f4d66440525ff4bc6eab7b5b39 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Mon, 16 Apr 2018 16:57:22 -0500 Subject: [PATCH] Fix another flight day test --- tests/FlightTest.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/FlightTest.php b/tests/FlightTest.php index 08ddc7eb..0f449bbb 100644 --- a/tests/FlightTest.php +++ b/tests/FlightTest.php @@ -172,8 +172,6 @@ class FlightTest extends TestCase factory(App\Models\Flight::class, 5)->create(); $flight = factory(App\Models\Flight::class)->create([ 'days' => $days, - #'start_date' => Carbon\Carbon::now('UTC')->subDay(1), - #'end_date' => Carbon\Carbon::now('UTC')->addDays(1), ]); // Run the event that will enable/disable flights @@ -221,7 +219,7 @@ class FlightTest extends TestCase $this->user = factory(App\Models\User::class)->create(); // Set it to Monday or Tuesday, depending on what today is - if (date('N') === 1) { // today is a monday + if (date('N') === '1') { // today is a monday $days = Days::getDaysMask([Days::TUESDAY]); } else { $days = Days::getDaysMask([Days::MONDAY]);