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.

Frontend: https://github.com/amitavroy/video-reviews
API: https://github.com/amitavdevzone/video-review-api
App link: https://video-reviews.vercel.app

You can find me on:
Twitter: https://twitter.com/amitavroy7​
Discord: https://discord.gg/Em4nuvQk

#testing events #emails #laravel

Testing Events and Emails  - Laravel testing tutorial 11
1.10 GEEK