ShiftType test: Fix test
This commit is contained in:
parent
65dca1cebd
commit
7a92ea077f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue