Skip to content

Commit 7e3c959

Browse files
committed
just pass date
1 parent 45d3e0a commit 7e3c959

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/Testing/Concerns/InteractsWithTime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function travelTo($date, $callback = null)
5252
Carbon::setTestNow($date);
5353

5454
if ($callback) {
55-
return tap($callback(Carbon::now()), function () {
55+
return tap($callback($date), function () {
5656
Carbon::setTestNow();
5757
});
5858
}

0 commit comments

Comments
 (0)