From d7af313d3de99a1e6e7f459a2a1160519a61132e Mon Sep 17 00:00:00 2001 From: sprabhakar96 <62231869+sprabhakar96@users.noreply.github.com> Date: Mon, 8 Jun 2020 16:49:28 +0530 Subject: [PATCH 1/2] Update mocking-dependency.rst updated the docs "access the mock data from test area" --- docs/guide/usage/mocking-dependency.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/guide/usage/mocking-dependency.rst b/docs/guide/usage/mocking-dependency.rst index 61f3757..dd550b3 100644 --- a/docs/guide/usage/mocking-dependency.rst +++ b/docs/guide/usage/mocking-dependency.rst @@ -175,6 +175,24 @@ E.g.: $this->freeDeliveryThreshold = $threshold; } } + + 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:** From 3873e5c735a4d05d3e0b8bab6cca370ba035c360 Mon Sep 17 00:00:00 2001 From: Tibor Kotosz Date: Mon, 8 Jun 2020 13:26:35 +0200 Subject: [PATCH 2/2] Update mocking-dependency.rst --- docs/guide/usage/mocking-dependency.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/guide/usage/mocking-dependency.rst b/docs/guide/usage/mocking-dependency.rst index dd550b3..3b70b79 100644 --- a/docs/guide/usage/mocking-dependency.rst +++ b/docs/guide/usage/mocking-dependency.rst @@ -175,8 +175,9 @@ E.g.: $this->freeDeliveryThreshold = $threshold; } } - - 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. + +**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