Skip to content

Commit 6f6d2fb

Browse files
committed
ACP2E-3363: Magento\GraphQl\App\GraphQlCustomerMutationsTest.php Integration Test failure
1 parent 5ebdfb5 commit 6f6d2fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dev/tests/integration/testsuite/Magento/GraphQl/App/State/GraphQlStateDiff.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@
1010
use Magento\Customer\Api\AccountManagementInterface;
1111
use Magento\Customer\Model\AccountManagement;
1212
use Magento\Customer\Model\CustomerRegistry;
13+
use Magento\Framework\App\Area;
1314
use Magento\Framework\App\Http as HttpApp;
1415
use Magento\Framework\App\ObjectManager as AppObjectManager;
1516
use Magento\Framework\App\RequestInterface;
1617
use Magento\Framework\App\Response\Http as HttpResponse;
18+
use Magento\Framework\App\State;
1719
use Magento\Framework\Exception\LocalizedException;
1820
use Magento\Framework\Exception\NoSuchEntityException;
1921
use Magento\Framework\ObjectManagerInterface;
@@ -66,6 +68,7 @@ public function __construct()
6668
AppObjectManager::setInstance($this->objectManagerForTest);
6769
Bootstrap::setObjectManager($this->objectManagerForTest);
6870
$this->comparator = $this->objectManagerForTest->create(Comparator::class);
71+
$this->objectManagerForTest->get(State::class)->setAreaCode(Area::AREA_GRAPHQL);
6972
$this->objectManagerForTest->_resetState();
7073
}
7174

0 commit comments

Comments
 (0)