Skip to content

Commit

Permalink
Add travelling in test to prevent timestamp issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Kovah committed Jul 17, 2024
1 parent fdd9fb6 commit 2a5714c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Components/History/UserEntryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2a5714c

Please sign in to comment.