Skip to content

Commit 3c1f054

Browse files
committed
bug #21338 Fix incorrect security configuration structure in testing documentation (eddeh)
This PR was merged into the 7.3 branch. Discussion ---------- 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. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `7.x` for features of unreleased versions). --> Commits ------- 95e5368 Fix incorrect security configuration structure in testing documentation
2 parents de555d7 + 95e5368 commit 3c1f054

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)