Skip to content

Commit 7aee52c

Browse files
Merge pull request #40 from rdohms/patch-1
Adding note to authentication description
2 parents 94c02a5 + 618a34e commit 7aee52c

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,18 @@ protected static function getServerParameters()
344344
}
345345
```
346346

347+
Note: this assumes you have enabled `http_basic` in your security configuration using this setting in the `config_test.yml` file:
348+
349+
```yaml
350+
# app/config/config_test.yml
351+
security:
352+
firewalls:
353+
your_firewall_name:
354+
http_basic:
355+
```
356+
357+
See [How to simulate HTTP Authentication in a Functional Test](http://symfony.com/doc/current/cookbook/testing/http_authentication.html) for details
358+
347359
### Changing Client initialization
348360
349361
Oftentimes, overriding `createClient` is enough. Whenever you need more

0 commit comments

Comments
 (0)