Level 80
@Dmitriy_ru You can set the test time with Carbon: http://carbon.nesbot.com/docs/#api-testing
2 likes
How can I test time based components. For example I debug component that will trigger some event only if the time is "right".
I would like to:
But internally component is based on time() or Carbon component. What is the best way to change time during the tests?
@Dmitriy_ru You can set the test time with Carbon: http://carbon.nesbot.com/docs/#api-testing
Please or to participate in this conversation.