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