@@ -9,14 +9,54 @@ Behat Messenger Context Bundle
9
9
Installation
10
10
============
11
11
12
- Step 1: Install Bundle
12
+ Step 1: Download the Bundle
13
13
----------------------------------
14
14
Open a command console, enter your project directory and execute:
15
15
16
+ ### Applications that use Symfony Flex [ in progress] ( https://github.com/MacPaw/BehatRedisContext/issues/2 )
17
+
18
+ ``` console
19
+ $ composer require --dev macpaw/behat-messenger-context
20
+ ```
21
+
22
+ ### Applications that don't use Symfony Flex
23
+
24
+ Open a command console, enter your project directory and execute the
25
+ following command to download the latest stable version of this bundle:
26
+
16
27
``` console
17
28
$ composer require --dev macpaw/behat-messenger-context
18
29
```
19
30
31
+ This command requires you to have Composer installed globally, as explained
32
+ in the [ installation chapter] ( https://getcomposer.org/doc/00-intro.md )
33
+ of the Composer documentation.
34
+
35
+
36
+ Then, enable the bundle by adding it to the list of registered bundles
37
+ in the ` app/AppKernel.php ` file of your project:
38
+
39
+ ``` php
40
+ <?php
41
+ // app/AppKernel.php
42
+
43
+ // ...
44
+ class AppKernel extends Kernel
45
+ {
46
+ public function registerBundles()
47
+ {
48
+ $bundles = array(
49
+ // ...
50
+ BehatMessengerContext\BehatMessengerContextBundle::class => ['test' => true],
51
+ );
52
+
53
+ // ...
54
+ }
55
+
56
+ // ...
57
+ }
58
+ ```
59
+
20
60
Step 2: Configure Messenger
21
61
=============
22
62
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.
@@ -50,4 +90,4 @@ Go to `behat.yml`
50
90
[ master Code Coverage ] : https://codecov.io/gh/macpaw/BehatMessengerContext/branch/master
51
91
[ master Code Coverage Image ] : https://img.shields.io/codecov/c/github/macpaw/BehatMessengerContext/master?logo=codecov
52
92
[ develop Code Coverage ] : https://codecov.io/gh/macpaw/BehatMessengerContext/branch/develop
53
- [ develop Code Coverage Image ] : https://img.shields.io/codecov/c/github/macpaw/BehatMessengerContext/develop?logo=codecov
93
+ [ develop Code Coverage Image ] : https://img.shields.io/codecov/c/github/macpaw/BehatMessengerContext/develop?logo=codecov
0 commit comments