10000 [Mailer] Add new email testing functions (fixes #50200) · symfony/symfony-docs@1904ba2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1904ba2

Browse files
committed
[Mailer] Add new email testing functions (fixes #50200)
1 parent 6e204f8 commit 1904ba2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

testing.rst

+3
Original file line numberDiff line numberDiff line change
@@ -1034,6 +1034,9 @@ Mailer Assertions
10341034
Asserts that the given address header equals the expected e-mail
10351035
address. This assertion normalizes addresses like ``Jane Smith
10361036
<jane@example.com>`` into ``jane@example.com``.
1037+
``assertEmailSubjectContains(RawMessage $email, string $expectedValue, string $message = '')``/``assertEmailSubjectNotContains(RawMessage $email, string $expectedValue, string $message = '')``
1038+
Asserts that the subject of the given email does (not) contain the
1039+
expected subject.
10371040

10381041
Notifier Assertions
10391042
...................

0 commit comments

Comments
 (0)
0