You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a better way to handle this? This was just an example test; in the real world this would be a feature test where I am not sending the mailable directly in the test but rather making a request to my app that generates the email.
I was considering creating a PR with this change, but I wasn't sure how to add a test that covers this functionality.
The text was updated successfully, but these errors were encountered:
I have multiple mailers configured in my
config/mail.php
with the default set tosendmail
If I have code that uses a specific mailer to send mail I do something like this in my test:
This test fails. I discovered if I change:
to using the mail manager and allow specifying the mailer like this:
and then in my test do this it works:
Is there a better way to handle this? This was just an example test; in the real world this would be a feature test where I am not sending the mailable directly in the test but rather making a request to my app that generates the email.
I was considering creating a PR with this change, but I wasn't sure how to add a test that covers this functionality.
The text was updated successfully, but these errors were encountered: