sirhxalot's avatar

Test Passwort Reset Notification

Hi, folks!

I would like to write a unit test for the complete authentification workflow used in Laravel 5.3. Most of the work is done so far, but I dont know how to check the notification send when a user resets his password.

My Goal is to check if the notification triggers an email and if so I would like to read the content of that email in order to get the password reset link. Than I can continue on to reset the password by visting the page, fill in the form ... Another approach I was thinking about is to get the password reset token and use that for visiting the password reset page, but I dont know how to fetch it from a user either.

In short does someone knows a solid unit test for Laravels Authentification (https://laravel.com/docs/5.3/authentication) where these topics will be described?

Thanks for any suggestions in advanced. SirThxAlot

0 likes
1 reply

Please or to participate in this conversation.