@just-pthai-it No, mails aren’t sent. And you don’t want them being sent in tests either.
https://github.com/laravel/laravel/blob/10.x/phpunit.xml#L26
I have a feature test which send mails at last. I commented the mail fake code section in order to know that mails were actually sent. The send mail method was called. But when I check my mailbox, there are not any mails were sent to me. Is it normal that Laravel will not actually send mail in test (I do not see any reference about it in the docs).
P/s: I added an dump code into the constructor of Mailable class and it did show on the terminal. But no mails were sent
@just-pthai-it No, mails aren’t sent. And you don’t want them being sent in tests either.
https://github.com/laravel/laravel/blob/10.x/phpunit.xml#L26
Please or to participate in this conversation.