Skip to content

Commit 9cedefa

Browse files
damien-louisjaviereguiluz
authored andcommitted
Update testing.rst
1 parent 0160e14 commit 9cedefa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

testing.rst

+4
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,10 @@ You can pass any
759759
:class:`Symfony\\Bundle\\FrameworkBundle\\Test\\TestBrowserToken` object and
760760
stores in the session of the test client.
761761

762+
To set a specific firewall (``main`` is set by default)::
763+
764+
$client->loginUser($testUser, 'my_firewall');
765+
762766
.. note::
763767

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

0 commit comments

Comments
 (0)