Skip to content

Commit

Permalink
Update mocking-dependency.rst (#7)
Browse files Browse the repository at this point in the history
* Update mocking-dependency.rst

updated the docs "access the mock data from test area"

* Update mocking-dependency.rst

Co-authored-by: Tibor Kotosz <[email protected]>
  • Loading branch information
sprabhakar96 and Tibor Kotosz authored Jun 8, 2020
1 parent e522fd5 commit 9d5fdc8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/guide/usage/mocking-dependency.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9d5fdc8

Please sign in to comment.