From 2a5714c702b325664a6936679bc64e724d4dcc2f Mon Sep 17 00:00:00 2001 From: Kovah Date: Wed, 17 Jul 2024 14:46:56 +0200 Subject: [PATCH] Add travelling in test to prevent timestamp issues --- tests/Components/History/UserEntryTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Components/History/UserEntryTest.php b/tests/Components/History/UserEntryTest.php index 34c85b5f..cefd0a4c 100644 --- a/tests/Components/History/UserEntryTest.php +++ b/tests/Components/History/UserEntryTest.php @@ -15,7 +15,7 @@ class UserEntryTest extends TestCase public function testRegularChange(): void { $user = User::factory()->create(['name' => 'TestUser']); - + $this->travel(10)->seconds(); $user->update(['name' => 'UserTest']); $historyEntries = $user->audits()->latest()->get();