I am trying to understand what exactly you are testing here; why do you need to visit that link in your test?
Testing that an email can be verified
I wish to have a test that checks whether or not an email can be verified successfully.
The issue I have is getting my test to visit the link created by verificationUrl() in the VerifyEmail notification. Is there a way I can easily expose this for testing purposes?
This is one way of doing it: https://stackoverflow.com/a/57714619/199700
But I was wondering if anyone knows a better way?
I think I know what you're doing, but I'm not sure I would go about testing it as you are since I don't own that Email Verification code. I think I would probably be Unit Testing whatever is listening to the Verified event, and it is inside that Listener that I would updated their email address?
Please or to participate in this conversation.