diff --git a/docs/guide/usage/mocking-dependency.rst b/docs/guide/usage/mocking-dependency.rst index 61f3757..3b70b79 100644 --- a/docs/guide/usage/mocking-dependency.rst +++ b/docs/guide/usage/mocking-dependency.rst @@ -176,6 +176,25 @@ E.g.: } } +**behat.yml:** +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. + +.. code-block:: yaml + + default: + suites: + yoursuite: + autowire: true + + contexts: + - YourContext + + services: '@bex.magento2_extension.service_container' + + magento: + area: test + + **Feature:** .. code-block:: gherkin