Fixed stats test

This commit is contained in:
Igor Scheller 2023-02-03 12:37:01 +01:00 committed by Michael Weimann
parent 920fa7feb9
commit e0a702ec3b
1 changed files with 2 additions and 2 deletions

View File

@ -338,8 +338,8 @@ class StatsTest extends TestCase
/** @var Shift $shift */ /** @var Shift $shift */
$shift = Shift::factory()->create(['start' => Carbon::now()->subHour(), 'end' => Carbon::now()->addHour()]); $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, 'freeloaded' => false]);
ShiftEntry::factory()->create(['shift_id' => $shift->id]); ShiftEntry::factory()->create(['shift_id' => $shift->id, 'freeloaded' => false]);
ShiftEntry::factory()->create(['shift_id' => $shift->id, 'freeloaded' => true]); ShiftEntry::factory()->create(['shift_id' => $shift->id, 'freeloaded' => true]);
$stats = new Stats($this->database); $stats = new Stats($this->database);