In this video, I am going to send emails when Admin performs an operation. We will see how we can test that an Email is triggered. We will also send the email using an event. So, we will also see how Events are tests.
The idea is that we will make a call to the API with the required data. And then, we will test to confirm that an event is fired. And, also that an email was sent.
Laravel provides us with a lot of helpful tools to Fake events and emails and test that these things were triggered.
#testing events #emails #laravel