true]); $user = factory(User::class)->create(['verified' => false]); Event::dispatch('auth.registration.completed', [$user]); Mail::assertSent(EmailVerification::class, function ($mail) use ($user) { return $mail->hasTo($user->email); }); Mail::shouldReceive('to') ->once() ->andThrow(new \Mockery\Exception('A fake exception.')); Event::dispatch('auth.registration.completed', [$user]); } }