mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 05:14:04 +00:00
17 lines
No EOL
450 B
Markdown
17 lines
No EOL
450 B
Markdown
---
|
|
title: 'You can time travel() in your tests '
|
|
tweet_id: '1547939812220407808'
|
|
thread_slug: weekly-thread-2022-28
|
|
author_username: ecrmnn
|
|
images:
|
|
- 'https://pbs.twimg.com/media/FXevKR8UIAAY40z.jpg'
|
|
created_at: 2022-07-15T13:43:05+00:00
|
|
slug: you-can-time-travel-in-your-tests
|
|
---
|
|
🔮 Travel in time in your Laravel tests.
|
|
|
|
Using the *travel()* method you can travel back and forward in time.
|
|
|
|
No more Carbon::setTestNow()
|
|
|
|
Super useful 👏 |