HippoStep\SilverStripePhpUnit9\SapphireTestPhpUnit9::findEmail
Search for an email that was sent.
All of the parameters can either be a string, or, if they start with "/", a PREG-compatible regular expression.
Signature
public function findEmail(string
$to,
[string
$from = NULL,
[string
$subject = NULL,
[string
$content = NULL]]] )
Parameters
$to
— string$from
— string$subject
— string$content
— string
Returns
- array|null
- Contains keys: 'Type', 'To', 'From', 'Subject', 'Content', 'PlainContent', 'AttachedFiles',
'HtmlContent'