Skip to content

Commit

Permalink
minor #18269 [Mailer] Add new email testing functions (johanadivare)
Browse files Browse the repository at this point in the history
This PR was merged into the 6.4 branch.

Discussion
----------

[Mailer] Add new email testing functions

Refs symfony/symfony#50200

Commits
-------

1904ba2 [Mailer] Add new email testing functions (fixes #50200)
  • Loading branch information
javiereguiluz committed Jul 12, 2023
2 parents 9819c59 + 1904ba2 commit 75c3270
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,9 @@ Mailer Assertions
Asserts that the given address header equals the expected e-mail
address. This assertion normalizes addresses like ``Jane Smith
<jane@example.com>`` into ``jane@example.com``.
``assertEmailSubjectContains(RawMessage $email, string $expectedValue, string $message = '')``/``assertEmailSubjectNotContains(RawMessage $email, string $expectedValue, string $message = '')``
Asserts that the subject of the given email does (not) contain the
expected subject.

Notifier Assertions
...................
Expand Down

0 comments on commit 75c3270

Please sign in to comment.