Skip to content

Commit ffca523

Browse files
committed
Merge branch '6.4' into 7.3
* 6.4: [BrowserKit] Add a note about making multiple requests
2 parents 3f561ca + 81b3348 commit ffca523

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/browser_kit.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ The value returned by the ``request()`` method is an instance of the
6969
:doc:`DomCrawler component </components/dom_crawler>`, which allows accessing
7070
and traversing HTML elements programmatically.
7171

72+
.. note::
73+
74+
After making a request, subsequent requests will make the client to
75+
reboot the kernel. This clears the security token, detaches Doctrine
76+
entities, etc. Read more about :ref:`making multiple requests in the same test`.
77+
7278
The :method:`Symfony\\Component\\BrowserKit\\AbstractBrowser::jsonRequest` method,
7379
which defines the same arguments as the ``request()`` method, is a shortcut to
7480
convert the request parameters into a JSON string and set the needed HTTP headers::

0 commit comments

Comments
 (0)