Skip to content

Commit b53b0a2

Browse files
walvapamil
andauthored
Example on how to enable test environment (#147)
Co-authored-by: Kamil Kokot <kamil@kokot.me>
1 parent c112c8f commit b53b0a2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

DOCUMENTATION.md

+15
Original file line numberDiff line numberDiff line change
@@ -413,3 +413,18 @@ default:
413413

414414
It allows you to force enabling or disabling debug mode. If it is not set, it uses `APP_DEBUG` environment variable
415415
if defined or falls back to `true`.
416+
417+
## Enable the kernel environment **test**
418+
419+
To configure the environment used by the kernel (`APP_ENV`) while running scenarios, configure the extension:
420+
421+
```yaml
422+
# behat.yaml.dist / behat.yaml
423+
424+
default:
425+
extensions:
426+
FriendsOfBehat\SymfonyExtension:
427+
kernel:
428+
environment: test
429+
bootstrap: tests/bootstrap.php
430+
```

0 commit comments

Comments
 (0)