Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Carbon::setTestNow() doesn't work in datasets #1219

Open
husskade opened this issue Sep 4, 2024 · 0 comments
Open

[Bug]: Carbon::setTestNow() doesn't work in datasets #1219

husskade opened this issue Sep 4, 2024 · 0 comments
Labels

Comments

@husskade
Copy link

husskade commented Sep 4, 2024

What Happened

When I use Carbon::setTestNow(Carbon::now()) in my tests and something like:

it("fails)", function (Carbon $from): void { // })->with([ "example" => [ "from" => Carbon::now(), ] ]);

the value of Carbon::setTestNow() is ignored.

How to Reproduce

Doesn't matter where I set it - test itself, beforeEach or beforeAll.

Sample Repository

No response

Pest Version

2.35.0

PHP Version

8.3

Operation System

Linux

Notes

No response

@husskade husskade added the bug label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant