From e0a702ec3b06d2b5bd8bf5fb449e3124162577e3 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Fri, 3 Feb 2023 12:37:01 +0100 Subject: [PATCH] Fixed stats test --- tests/Unit/Controllers/Metrics/StatsTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Unit/Controllers/Metrics/StatsTest.php b/tests/Unit/Controllers/Metrics/StatsTest.php index 63b916ff..3dfd0218 100644 --- a/tests/Unit/Controllers/Metrics/StatsTest.php +++ b/tests/Unit/Controllers/Metrics/StatsTest.php @@ -338,8 +338,8 @@ class StatsTest extends TestCase /** @var Shift $shift */ $shift = Shift::factory()->create(['start' => Carbon::now()->subHour(), 'end' => Carbon::now()->addHour()]); - ShiftEntry::factory()->create(['shift_id' => $shift->id]); - ShiftEntry::factory()->create(['shift_id' => $shift->id]); + ShiftEntry::factory()->create(['shift_id' => $shift->id, 'freeloaded' => false]); + ShiftEntry::factory()->create(['shift_id' => $shift->id, 'freeloaded' => false]); ShiftEntry::factory()->create(['shift_id' => $shift->id, 'freeloaded' => true]); $stats = new Stats($this->database);