Closed Braunson closed 1 year ago
Support for Laravel's time travel feature in tests / Carbon::setTestNow() for audits.
$model = Model::create(); $this->travel(-30)->days(); // or $this->travelTo(now()->subDays(30)); $model->delete(); $this->travelBack();
After checking the audit's created_at timestamp they are the current date time and not -30 days.
created_at
Seems something funky locally was going on and this is a non-issue. Closing.
Feature Details
Support for Laravel's time travel feature in tests / Carbon::setTestNow() for audits.
Example Code
After checking the audit's
created_at
timestamp they are the current date time and not -30 days.