We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
According to the Laravel doc https://laravel.com/docs/5.8/mail#inline-attachments Laravel automatically add the message variable inside the template.
message
But while testing it, phpunit will fail with the next error
In fact it works fine for the real email send
The text was updated successfully, but these errors were encountered:
The main reason of this one is merging the message variable into the view data on the sending level instead of preparing mail object
https://github.com/laravel/framework/blob/c2eb31872aa092cdd4ae977886636b76b1064bd8/src/Illuminate/Mail/Mailer.php#L311
As a first step to resolve this one - we need to try to get the mail content from the log driver instead of mocking Mail
log
Sorry, something went wrong.
No branches or pull requests
According to the Laravel doc https://laravel.com/docs/5.8/mail#inline-attachments Laravel automatically add the
message
variable inside the template.But while testing it, phpunit will fail with the next error
In fact it works fine for the real email send
The text was updated successfully, but these errors were encountered: