File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,11 @@ You can also override it on a per request basis::
19
19
'PHP_AUTH_PW' => 'pa$$word',
20
20
));
21
21
22
- When your application is using a form_login with an entity provider, you can
23
- simplify your tests by allowing your test configuration to make use of HTTP
24
- authentication. This way you can use the above to authenticate and still use
25
- the entity provider::
22
+ When your application is using a ``form_login ``, you can simplify your tests
23
+ by allowing your test configuration to make use of HTTP authentication. This
24
+ way you can use the above to authenticate in tests, but still have your users
25
+ login via the normal ``form_login ``. The trick is to include the ``http_basic ``
26
+ key in your firewall, along with the ``form_login `` key:
26
27
27
28
.. configuration-block ::
28
29
@@ -31,8 +32,5 @@ the entity provider::
31
32
# app/config/config_test.yml
32
33
security :
33
34
firewalls :
34
- secured_area :
35
+ your_firewall_name :
35
36
http_basic :
36
-
37
- You do have to know the password for your users as this stored encrypted in
38
- the database. You can use fixtures to load test users into your database.
You can’t perform that action at this time.
0 commit comments