Fix flight on days deactivation test
This commit is contained in:
@@ -78,7 +78,7 @@ abstract class Repository extends \Prettus\Repository\Eloquent\BaseRepository
|
||||
}
|
||||
|
||||
/**
|
||||
* Find records with a WHERE clause but also sort them
|
||||
* Find records where values don't match a list but sort the rest
|
||||
* @param string $col
|
||||
* @param array $values
|
||||
* @param string $sort_by
|
||||
|
||||
@@ -163,7 +163,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]);
|
||||
|
||||
Reference in New Issue
Block a user