Skip to content

Commit 95e5368

Browse files
authored
Fix incorrect security configuration structure in testing documentation
Fixed the YAML configuration structure for defining in-memory users in the test environment. The previous configuration was missing the required providers key, which would result in a configuration error.
1 parent de555d7 commit 95e5368

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

testing.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -735,10 +735,11 @@ configuration to ensure it exists and can be authenticated::
735735
# config/packages/security.yaml
736736
when@test:
737737
security:
738-
users_in_memory:
739-
memory:
740-
users:
741-
admin: { password: password, roles: ROLE_ADMIN }
738+
providers:
739+
users_in_memory:
740+
memory:
741+
users:
742+
admin: { password: password, roles: ROLE_ADMIN }
742743
743744
To set a specific firewall (``main`` is set by default)::
744745

0 commit comments

Comments
 (0)