diff --git a/tests/Feature/app/Models/AuditLogEntryTest.php b/tests/Feature/app/Models/AuditLogEntryTest.php new file mode 100644 index 0000000..9c88076 --- /dev/null +++ b/tests/Feature/app/Models/AuditLogEntryTest.php @@ -0,0 +1,24 @@ + 'test@example.com', + 'ip_address' => '127.0.0.1', + 'message' => 'Test Message', + 'affected' => ['users' => [1]], + ]); + + // Force reload to trigger the attribute accessor + $entry->refresh(); + + // The timestamp should be formatted as "M j, Y H:i:s" in America/Chicago timezone + expect($entry->created_at)->toBe('Jan 1, 2024 06:00:00'); +});