Skip to content

Commit 4c11b3b

Browse files
authored
Update testing.rst
1 parent eaaf3f2 commit 4c11b3b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

testing.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,10 @@ stores in the session of the test client. If you need to define custom
712712
attributes in this token, you can use the ``tokenAttributes`` argument of the
713713
:method:`Symfony\\Bundle\\FrameworkBundle\\KernelBrowser::loginUser` method.
714714

715+
To set a specific firewall (``main`` is set by default)::
716+
717+
$client->loginUser($testUser, 'my_firewall');
718+
715719
.. note::
716720

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

0 commit comments

Comments
 (0)