Example on how to enable test environment (#147)
Co-authored-by: Kamil Kokot <kamil@kokot.me>
This commit is contained in:
@@ -413,3 +413,18 @@ default:
|
|||||||
|
|
||||||
It allows you to force enabling or disabling debug mode. If it is not set, it uses `APP_DEBUG` environment variable
|
It allows you to force enabling or disabling debug mode. If it is not set, it uses `APP_DEBUG` environment variable
|
||||||
if defined or falls back to `true`.
|
if defined or falls back to `true`.
|
||||||
|
|
||||||
|
## Enable the kernel environment **test**
|
||||||
|
|
||||||
|
To configure the environment used by the kernel (`APP_ENV`) while running scenarios, configure the extension:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# behat.yaml.dist / behat.yaml
|
||||||
|
|
||||||
|
default:
|
||||||
|
extensions:
|
||||||
|
FriendsOfBehat\SymfonyExtension:
|
||||||
|
kernel:
|
||||||
|
environment: test
|
||||||
|
bootstrap: tests/bootstrap.php
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user