Skip to content

Commit 8bf4ed6

Browse files
committed
minor #8065 Clearify setup of basic auth for test environment (xelaris, javiereguiluz)
This PR was merged into the 2.7 branch. Discussion ---------- Clearify setup of basic auth for test environment Fixes #8005 Commits ------- 5f7c5f6 Minor reword 56488ed Clearify setup of basic auth for test environment
2 parents f5fb157 + 5f7c5f6 commit 8bf4ed6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

testing/http_authentication.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,16 @@ firewall, but only in the configuration file used by tests:
3030
# app/config/config_test.yml
3131
security:
3232
firewalls:
33-
your_firewall_name:
33+
# replace 'main' by the name of your own firewall
34+
main:
3435
http_basic: ~
3536
3637
.. code-block:: xml
3738
3839
<!-- app/config/config_test.xml -->
3940
<security:config>
40-
<security:firewall name="your_firewall_name">
41+
<!-- replace 'main' by the name of your own firewall -->
42+
<security:firewall name="main">
4143
<security:http-basic />
4244
</security:firewall>
4345
</security:config>
@@ -47,7 +49,8 @@ firewall, but only in the configuration file used by tests:
4749
// app/config/config_test.php
4850
$container->loadFromExtension('security', array(
4951
'firewalls' => array(
50-
'your_firewall_name' => array(
52+
// replace 'main' by the name of your own firewall
53+
'main' => array(
5154
'http_basic' => array(),
5255
),
5356
),

0 commit comments

Comments
 (0)