CodeExplorer EmailTextBodyContains example
self::
assertThat($event,
new LogicalNot(new MailerConstraint\
EmailIsQueued()),
$message);
} public static function assertEmailAttachmentCount(RawMessage
$email, int
$count, string
$message = ''
): void
{ self::
assertThat($email,
new MimeConstraint\
EmailAttachmentCount($count),
$message);
} public static function assertEmailTextBodyContains(RawMessage
$email, string
$text, string
$message = ''
): void
{ self::
assertThat($email,
new MimeConstraint\
EmailTextBodyContains($text),
$message);
} public static function assertEmailTextBodyNotContains(RawMessage
$email, string
$text, string
$message = ''
): void
{ self::
assertThat($email,
new LogicalNot(new MimeConstraint\
EmailTextBodyContains($text)),
$message);
} public static function assertEmailHtmlBodyContains(RawMessage
$email, string
$text, string
$message = ''
): void
{ self::
assertThat($email,
new MimeConstraint\
EmailHtmlBodyContains($text),
$message);
}