Skip to content

Commit 871fa71

Browse files
authored
Fix testing.rst
1 parent 6b56c07 commit 871fa71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testing.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,8 @@ attributes in this token, you can use the ``tokenAttributes`` argument of the
716716

717717
You can also use :class:`Symfony\\Component\\Security\\Core\\User\\InMemoryUser` but you have to define those in the configuration first::
718718

719+
.. code-block:: yaml
720+
719721
// config/packages/security.yaml
720722
when@test:
721723
security:
@@ -727,7 +729,6 @@ You can also use :class:`Symfony\\Component\\Security\\Core\\User\\InMemoryUser`
727729
and then log the user with::
728730

729731
// tests/Controller/ProfileControllerTest.php
730-
731732
use Symfony\Component\Security\Core\User\InMemoryUser;
732733

733734
$client = static::createClient();

0 commit comments

Comments
 (0)