From 7a92ea077fb9a8be2519e548759ea2a08c660159 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Fri, 2 Dec 2022 15:07:29 +0100 Subject: [PATCH] ShiftType test: Fix test --- tests/Unit/Models/Shifts/ShiftTypeTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Unit/Models/Shifts/ShiftTypeTest.php b/tests/Unit/Models/Shifts/ShiftTypeTest.php index 85b1d632..e91f33ae 100644 --- a/tests/Unit/Models/Shifts/ShiftTypeTest.php +++ b/tests/Unit/Models/Shifts/ShiftTypeTest.php @@ -16,7 +16,7 @@ class ShiftTypeTest extends ModelTest $shiftType = new ShiftType(['name' => 'Test type', 'description' => 'Foo bar baz']); $shiftType->save(); - Schedule::factory()->create(); + Schedule::factory()->create(['shift_type' => 2]); Schedule::factory(2)->create(['shift_type' => 1]); $this->assertCount(2, ShiftType::find(1)->schedules);