From 9cedefa06ba903f301ccebd2281d4649e42544e5 Mon Sep 17 00:00:00 2001 From: Damien Louis <72412142+damien-louis@users.noreply.github.com> Date: Tue, 1 Oct 2024 13:54:01 +0200 Subject: [PATCH] Update testing.rst --- testing.rst | 4 ++++ 1 file changed, 4 insertions(+) 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.