From 1d5f16a59ea7ffb25f152ca0bd803e31e90a4594 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Mon, 25 Sep 2023 17:36:43 +0200 Subject: [PATCH] Tests: Fix flaky freeloader test --- tests/Unit/Models/User/UserTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Unit/Models/User/UserTest.php b/tests/Unit/Models/User/UserTest.php index 1cfe08ff..ef359c9e 100644 --- a/tests/Unit/Models/User/UserTest.php +++ b/tests/Unit/Models/User/UserTest.php @@ -227,7 +227,7 @@ class UserTest extends ModelTest $user->save(); $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]); $this->assertFalse($user->isFreeloader());