laravel-mail-assertions
laravel-mail-assertions copied to clipboard
PHPUnit mail assertions for testing email in Laravel
Currently, the assertions are for the most recent message. It would be nice to be able to specify a specific index in the collection of messages.
We could assert that an email was sent on a particular date, though that would mean doing something like setting Carbon's testNow() when sending the email. Thoughts?
This one is ambitious, but how cool would it be to have an algorithm to detect the email as spam? I know it's tricky attempting to assign a "SPAM rating",...
Need assertions for attachments to do things like... - Number of attachments - File name - Has attachment - Doesn't have a attachment