Skip to content

Commit ae79b24

Browse files
committed
minor #20284 [Testing] Update testing.rst (damien-louis)
This PR was submitted for the 7.1 branch but it was merged into the 5.4 branch instead. Discussion ---------- [Testing] Update testing.rst Adding a little info about loginUser() method. Commits ------- 9cedefa Update testing.rst
2 parents 0160e14 + 9cedefa commit ae79b24

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)