Behat Messenger Context
Version | Build Status | Code Coverage |
---|---|---|
master |
||
develop |
Installation
Step 1: Install Context
Open a command console, enter your project directory and execute:
$ composer require --dev macpaw/behat-messenger-context
Step 2: Update Container config to load Messenger Context
In the config/services_test.yaml
file of your project:
BehatMessengerContext\:
resource: '../vendor/macpaw/behat-messenger-context/src/*'
arguments:
- '@test.service_container'
Step 3: Configure Messenger
Copying config/packages/dev/messenger.yaml
and pasting that into config/packages/test/
. This gives us messenger configuration that will only be used in the test environment. Uncomment the code, and replace sync with in-memory. Do that for both of the transports.
framework:
messenger:
transports:
async: 'in-memory://'
async_priority_high: 'in-memory://'
...
...
Step 4: Configure Behat
Go to behat.yml
...
contexts:
- BehatMessengerContext\Context\MessengerContext
...