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);