Download the PHP package cyber-duck/mailgrasp without Composer
On this page you can find all versions of the php package cyber-duck/mailgrasp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cyber-duck/mailgrasp
More information about cyber-duck/mailgrasp
Files in cyber-duck/mailgrasp
Package mailgrasp
Short Description A package for Laravel applications (5.1) to add support for email testing in your test classes.
License MIT
Homepage https://github.com/Cyber-Duck/Mail-Grasp
Informations about the package mailgrasp
🚨 Discontinued 🚨
This functionality is redily available in later releases of Laravel.
MailGrasp
MailGrasp is a package for Laravel applications (5.1+) to add support for email testing in your test classes.
Author: Simone Todaro
Made with :heart: by Cyber-Duck Ltd
Installation
Usage
Add the InteractsWithEmails
to your test class. That's it!
The custom mailer will be initialised as soon as the visit() method is called.
seeEmails
It checks if exactly $count
emails have been sent or enqueued.
seeEmailsInQueue
It checks if exactly $count
emails have been enqueued.
dontSeeEmails / notSeeEmails
It checks that no email has been sent or enqueued.
dontSeeEmailsInQueue / notSeeEmailsInQueue
It checks that no email has been enqueued.
seeEmail
It checks that an email matching given critaria has been sent or enqueued.
dontSeeEmail
Complete opposite of seeEmail.
seeEmailInQueue
It checks that an email matching given critaria has been enqueued.
seeInEmail
It checks that an email matching the given critaria contains the given string.
clickInEmail
Visit the page in the email link. Useful to test activation links.
If there is more than one link in the email, it's possible to select the link passing a css selector as second parameter.