Fix another flight day test
This commit is contained in:
parent
ea32353890
commit
59302ded0f
@ -172,8 +172,6 @@ class FlightTest extends TestCase
|
|||||||
factory(App\Models\Flight::class, 5)->create();
|
factory(App\Models\Flight::class, 5)->create();
|
||||||
$flight = factory(App\Models\Flight::class)->create([
|
$flight = factory(App\Models\Flight::class)->create([
|
||||||
'days' => $days,
|
'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
|
// Run the event that will enable/disable flights
|
||||||
@ -221,7 +219,7 @@ class FlightTest extends TestCase
|
|||||||
$this->user = factory(App\Models\User::class)->create();
|
$this->user = factory(App\Models\User::class)->create();
|
||||||
|
|
||||||
// Set it to Monday or Tuesday, depending on what today is
|
// 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]);
|
$days = Days::getDaysMask([Days::TUESDAY]);
|
||||||
} else {
|
} else {
|
||||||
$days = Days::getDaysMask([Days::MONDAY]);
|
$days = Days::getDaysMask([Days::MONDAY]);
|
||||||
|
Loading…
Reference in New Issue
Block a user