Skip to content

Mentioned the new mailer assert methods for tests #12311

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 25 additions & 3 deletions testing/functional_tests_assertions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ Now here is the example with the assertions specific to Symfony::
Assertions Reference
---------------------

.. versionadded:: 4.4

Starting from Symfony 4.4, when using `symfony/panther`_ for end-to-end
testing, you can use all the following assertions except the ones related to
the :doc:`Crawler </components/dom_crawler>`.

Response
~~~~~~~~

Expand Down Expand Up @@ -72,10 +78,26 @@ Crawler
- ``assertInputValueSame()``
- ``assertInputValueNotSame()``

Mailer
~~~~~~

- ``assertEmailCount()``
- ``assertQueuedEmailCount()``
- ``assertEmailIsQueued()``
- ``assertEmailIsNotQueued()``
- ``assertEmailAttachementCount()``
- ``assertEmailTextBodyContains()``
- ``assertEmailTextBodyNotContains()``
- ``assertEmailHtmlBodyContains()``
- ``assertEmailHtmlBodyNotContains()``
- ``assertEmailHasHeader()``
- ``assertEmailNotHasHeader()``
- ``assertEmailHeaderSame()``
- ``assertEmailHeaderNotSame()``
- ``assertEmailAddressContains()``

.. versionadded:: 4.4

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

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