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

[8.x] Adds an ability for the Wormhole class to take us back to the present. #35261

Merged
merged 2 commits into from Nov 18, 2020
Merged

Conversation

ambengers
Copy link
Contributor

@ambengers ambengers commented Nov 18, 2020

This PR upgrades the Wormhole to take us back to the present with its API

use Illuminate\Foundation\Testing\Wormhole;
use Illuminate\Support\Carbon;

(new Wormhole(10))->days();

// Currently, to go back to the present we we'll need to reach out for Carbon class like so..
Carbon::setTestNow();

// This PR upgrades the Wormhole to take us back to the present..
Wormhole::back();

@ambengers ambengers changed the title Adds an ability for the Wormhole class to take us back to the present. [8.x] Adds an ability for the Wormhole class to take us back to the present. Nov 18, 2020
@taylorotwell taylorotwell merged commit c35d76e into laravel:8.x Nov 18, 2020
13 checks passed
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.

None yet

2 participants