Skip to content

Updated the note about Symfony Panther and WebTestCase assertions #11890

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
Jul 10, 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
10 changes: 4 additions & 6 deletions testing/functional_tests_assertions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,10 @@ Crawler
- ``assertInputValueSame()``
- ``assertInputValueNotSame()``

Troubleshooting
---------------
.. versionadded:: 4.4

These assertions will not work with `symfony/panther`_ as they use the
``Request`` and ``Response`` objects from the ``HttpFoundation``
component, and the ``KernelBrowser`` from the ``FrameworkBundle``.
Panther only uses the ``BrowserKit`` component.
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>`.

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