From ea32353890d4d70e123fd767a967bb1317f48ddb Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Mon, 16 Apr 2018 16:46:51 -0500 Subject: [PATCH] Fix flight on days deactivation test --- app/Interfaces/Repository.php | 2 +- tests/FlightTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Interfaces/Repository.php b/app/Interfaces/Repository.php index e9dba006..c1d265e4 100644 --- a/app/Interfaces/Repository.php +++ b/app/Interfaces/Repository.php @@ -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 diff --git a/tests/FlightTest.php b/tests/FlightTest.php index 94c95b85..08ddc7eb 100644 --- a/tests/FlightTest.php +++ b/tests/FlightTest.php @@ -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]);