Laravel - Mocking - Interacting With Time

When testing, you may occasionally need to modify the time returned by helpers such as now or Illuminate\Support\Carbon::now(). Thankfully, Laravel's base feature test class includes helpers that allow you to manipulate the current time:

    public function testTimeCanBeManipulated()
        // Travel into the future...
        // Travel into the past...
        // Travel to an explicit time...
        // Return back to the present time...