Skip to content
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
6 changes: 6 additions & 0 deletions components/browser_kit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ The value returned by the ``request()`` method is an instance of the
:doc:`DomCrawler component </components/dom_crawler>`, which allows accessing
and traversing HTML elements programmatically.

.. note::

After making a request, subsequent requests will make the client to
reboot the kernel. This clears the security token, detaches Doctrine
entities, etc. Read more about :ref:`making multiple requests in the same test`.

The :method:`Symfony\\Component\\BrowserKit\\AbstractBrowser::jsonRequest` method,
which defines the same arguments as the ``request()`` method, is a shortcut to
convert the request parameters into a JSON string and set the needed HTTP headers::
Expand Down
Loading