Tests: Fix flaky freeloader test

This commit is contained in:
Igor Scheller 2023-09-25 17:36:43 +02:00 committed by Michael Weimann
parent fddae62669
commit 1d5f16a59e
1 changed files with 1 additions and 1 deletions

View File

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