protected function withoutEvents() { $mock = Mockery::mock('Illuminate\\Contracts\\Events\\Dispatcher'); $mock->shouldReceive('fire'); $this->app->instance('events', $mock); return $this; }