Currently I am working in few API tests and I still have some rode blocks regarding time change.
Scenario: Client spend X and get X bonus points. In the next day if the same client do not spend something a daily drop in the points will happen.
Logic uses Carbon::now(), I tried to use Carbon::setTestNow() but it only affect my test class and not new instances of now() function.
Is possible to redefine globally it? I will need to change dates a lot of times during the tests.
Thanks