Example on how to enable test environment (#147)

Co-authored-by: Kamil Kokot <kamil@kokot.me>
This commit is contained in:
Ellis Benjamin
2021-10-20 13:55:42 +02:00
committed by GitHub
parent c112c8f25f
commit b53b0a238b

View File

@@ -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
```