My system sends a couple of important emails. What is the best way to unit test that?
I see you can put it in pretend mode and it goes in the log. Is there something t
if you are using Notifcations in laravel you can do that like below
Notification::fake(); $this->post(...); $user = User::first(); Notification::assertSentTo([$user], VerifyEmail::class);
https://laravel.com/docs/7.x/mocking#notification-fake