Fixed stats test
This commit is contained in:
parent
920fa7feb9
commit
e0a702ec3b
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue