TestMailer
class TestMailer extends TestMailer (View source)
Same principle as core TestMailer class, but saves emails in TestSessionEnvironment to share the state between PHP calls (CLI vs. browser).
Properties
protected | TestSessionEnvironment | $testSessionEnvironment |
Methods
public
array
findEmails($to = null, $from = null, $subject = null, $content = null)
Search for all emails.
Details
__construct()
No description
clearEmails()
Clear the log of emails sent
findEmail($to = null, $from = null, $subject = null, $content = null)
No description
array
findEmails($to = null, $from = null, $subject = null, $content = null)
Search for all emails.
All of the parameters can either be a string, or, if they start with "/", a PREG-compatible regular expression.
protected
saveEmail($data)
No description