diff --git a/testing.rst b/testing.rst index 281f8c45ad8..ae9a42b9b2c 100644 --- a/testing.rst +++ b/testing.rst @@ -759,6 +759,10 @@ You can pass any :class:`Symfony\\Bundle\\FrameworkBundle\\Test\\TestBrowserToken` object and stores in the session of the test client. +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.