Skip to content

Commit

Permalink
Example on how to enable test environment (#147)
Browse files Browse the repository at this point in the history
Co-authored-by: Kamil Kokot <kamil@kokot.me>
  • Loading branch information
walva and pamil authored Oct 20, 2021
1 parent c112c8f commit b53b0a2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
```

0 comments on commit b53b0a2

Please sign in to comment.