Skip to content

Commit 03c850f

Browse files
committed
[Mailer] Add new email testing functions (fixes #50200)
1 parent 821541e commit 03c850f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

testing.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,6 +1096,9 @@ Mailer Assertions
10961096
Asserts that the given address header equals the expected e-mail
10971097
address. This assertion normalizes addresses like ``Jane Smith
10981098
<jane@example.com>`` into ``jane@example.com``.
1099+
``assertEmailSubjectContains(RawMessage $email, string $expectedValue, string $message = '')``/``assertEmailSubjectNotContains(RawMessage $email, string $expectedValue, string $message = '')``
1100+
Asserts that the subject of the given email does (not) contain the
1101+
expected subject.
10991102

11001103
.. TODO
11011104
.. End to End Tests (E2E)

0 commit comments

Comments
 (0)