Skip to content

Commit 68ca943

Browse files
committed
Merge branch '5.4' into 6.4
* 5.4: Update testing.rst
2 parents b302f53 + ae79b24 commit 68ca943

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
@@ -717,6 +717,10 @@ stores in the session of the test client. If you need to define custom
717717
attributes in this token, you can use the ``tokenAttributes`` argument of the
718718
:method:`Symfony\\Bundle\\FrameworkBundle\\KernelBrowser::loginUser` method.
719719

720+
To set a specific firewall (``main`` is set by default)::
721+
722+
$client->loginUser($testUser, 'my_firewall');
723+
720724
.. note::
721725

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

0 commit comments

Comments
 (0)