Skip to content

Commit 3a43a7e

Browse files
committed
Merge branch '7.4' into 8.0
* 7.4: Add the missing versionadded directive [Mailer] Add new assertEmailAddressNotContains method
2 parents c7983d6 + c259c28 commit 3a43a7e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

testing.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,14 +1082,18 @@ Mailer Assertions
10821082
``assertEmailHeaderSame(RawMessage $email, string $headerName, string $expectedValue, string $message = '')``/``assertEmailHeaderNotSame(RawMessage $email, string $headerName, string $expectedValue, string $message = '')``
10831083
Asserts that the given email does (not) have the expected header set to
10841084
the expected value.
1085-
``assertEmailAddressContains(RawMessage $email, string $headerName, string $expectedValue, string $message = '')``
1086-
Asserts that the given address header equals the expected e-mail
1085+
``assertEmailAddressContains(RawMessage $email, string $headerName, string $expectedValue, string $message = '')``/``assertEmailAddressNotContains(RawMessage $email, string $headerName, string $expectedValue, string $message = '')``
1086+
Asserts that the given address header does (not) equal the expected e-mail
10871087
address. This assertion normalizes addresses like ``Jane Smith
10881088
<jane@example.com>`` into ``jane@example.com``.
10891089
``assertEmailSubjectContains(RawMessage $email, string $expectedValue, string $message = '')``/``assertEmailSubjectNotContains(RawMessage $email, string $expectedValue, string $message = '')``
10901090
Asserts that the subject of the given email does (not) contain the
10911091
expected subject.
10921092

1093+
.. versionadded:: 7.4
1094+
1095+
The ``assertEmailAddressNotContains()`` assertion was introduced in Symfony 7.4.
1096+
10931097
Notifier Assertions
10941098
...................
10951099

0 commit comments

Comments
 (0)