Laravel\Lumen\Testing\TestCase::withoutEvents PHP Method

withoutEvents() protected method

Mock the event dispatcher so all events are silenced.
protected withoutEvents ( )
    protected function withoutEvents()
    {
        $mock = Mockery::mock('Illuminate\\Contracts\\Events\\Dispatcher');
        $mock->shouldReceive('fire');
        $this->app->instance('events', $mock);
        return $this;
    }