Skip to content

Commit

Permalink
Merge branch '5.4' into 6.4
Browse files Browse the repository at this point in the history
* 5.4:
  Update testing.rst
  • Loading branch information
javiereguiluz committed Oct 2, 2024
2 parents b302f53 + ae79b24 commit 68ca943
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,10 @@ stores in the session of the test client. If you need to define custom
attributes in this token, you can use the ``tokenAttributes`` argument of the
:method:`Symfony\\Bundle\\FrameworkBundle\\KernelBrowser::loginUser` method.

To set a specific firewall (``main`` is set by default)::

$client->loginUser($testUser, 'my_firewall');

.. note::

By design, the ``loginUser()`` method doesn't work when using stateless firewalls.
Expand Down

0 comments on commit 68ca943

Please sign in to comment.