Skip to content

Commit 9d5fdc8

Browse files
sprabhakar96Tibor Kotosz
andauthored
Update mocking-dependency.rst (#7)
* Update mocking-dependency.rst updated the docs "access the mock data from test area" * Update mocking-dependency.rst Co-authored-by: Tibor Kotosz <tkotosz@inviqa.com>
1 parent e522fd5 commit 9d5fdc8

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/guide/usage/mocking-dependency.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,25 @@ E.g.:
176176
}
177177
}
178178
179+
**behat.yml:**
180+
In order to load this custom DI configuration during the test run the test area need to be configured in the Behat test suite so it can load to merge it with the default area.
181+
182+
.. code-block:: yaml
183+
184+
default:
185+
suites:
186+
yoursuite:
187+
autowire: true
188+
189+
contexts:
190+
- YourContext
191+
192+
services: '@bex.magento2_extension.service_container'
193+
194+
magento:
195+
area: test
196+
197+
179198
**Feature:**
180199

181200
.. code-block:: gherkin

0 commit comments

Comments
 (0)