Tests: Fix flaky freeloader test
This commit is contained in:
parent
fddae62669
commit
1d5f16a59e
|
@ -227,7 +227,7 @@ class UserTest extends ModelTest
|
||||||
$user->save();
|
$user->save();
|
||||||
$this->assertFalse($user->isFreeloader());
|
$this->assertFalse($user->isFreeloader());
|
||||||
|
|
||||||
ShiftEntry::factory()->create(['user_id' => $user->id]);
|
ShiftEntry::factory()->create(['user_id' => $user->id, 'freeloaded' => false]);
|
||||||
ShiftEntry::factory()->create(['user_id' => $user->id, 'freeloaded' => true]);
|
ShiftEntry::factory()->create(['user_id' => $user->id, 'freeloaded' => true]);
|
||||||
$this->assertFalse($user->isFreeloader());
|
$this->assertFalse($user->isFreeloader());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue