Skip to content

[13.x] Fix uncaptured setTestNow now() reuse in tests - #61190

Merged
taylorotwell merged 1 commit into
laravel:13.xfrom
lucasmichot:setTestNow-cleanup
Aug 14, 2026
Merged

[13.x] Fix uncaptured setTestNow now() reuse in tests#61190
taylorotwell merged 1 commit into
laravel:13.xfrom
lucasmichot:setTestNow-cleanup

Conversation

@lucasmichot

@lucasmichot lucasmichot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Freeze now() into a variable and reuse it instead of calling now() again later in the same test.

Freezes and reuses now() instead of calling it again later.
@taylorotwell
taylorotwell merged commit cb7c9e1 into laravel:13.x Aug 14, 2026
55 checks passed
@lucasmichot
lucasmichot deleted the setTestNow-cleanup branch August 14, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants