8000 Mentioned the new mailer assert methods for tests · symfony/symfony-docs@9e577f6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9e577f6

Browse files
committed
Mentioned the new mailer assert methods for tests
1 parent 701e60c commit 9e577f6

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

testing/functional_tests_assertions.rst

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ Now here is the example with the assertions specific to Symfony::
3232
Assertions Reference
3333
---------------------
3434

35+
.. versionadded:: 4.4
36+
37+
Starting from Symfony 4.4, when using `symfony/panther`_ for end-to-end
38+
testing, you can use all the following assertions except the ones related to
39+
the :doc:`Crawler </components/dom_crawler>`.
40+
3541
Response
3642
~~~~~~~~
3743

@@ -72,10 +78,26 @@ Crawler
7278
- ``assertInputValueSame()``
7379
- ``assertInputValueNotSame()``
7480

81+
Mailer
DCFA
82+
~~~~~~
83+
84+
- ``assertEmailCount()``
85+
- ``assertQueuedEmailCount()``
86+
- ``assertEmailIsQueued()``
87+
- ``assertEmailIsNotQueued()``
88+
- ``assertEmailAttachementCount()``
89+
- ``assertEmailTextBodyContains()``
90+
- ``assertEmailTextBodyNotContains()``
91+
- ``assertEmailHtmlBodyContains()``
92+
- ``assertEmailHtmlBodyNotContains()``
93+
- ``assertEmailHasHeader()``
94+
- ``assertEmailNotHasHeader()``
95+
- ``assertEmailHeaderSame()``
96+
- ``assertEmailHeaderNotSame()``
97+
- ``assertEmailAddressContains()``
98+
7599
.. versionadded:: 4.4
76100

77-
Starting from Symfony 4.4, when using `symfony/panther`_ for end-to-end
78-
testing, you can use all the above assertions except the ones related to
79-
the :doc:`Crawler </components/dom_crawler>`.
101+
The mailer assert methods were introduced in Symfony 4.4.
80102

81103
.. _`symfony/panther`: https://github.com/symfony/panther

0 commit comments

Comments
 (0)
0