ShiftType test: Fix test

This commit is contained in:
Igor Scheller 2022-12-02 15:07:29 +01:00
parent 65dca1cebd
commit 7a92ea077f
1 changed files with 1 additions and 1 deletions

View File

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