Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Commit abe9728

Browse files
author
Valeriy Nayda
committed
GraphQL-165: GraphQL modules delivery
-- fix integration tests
1 parent 7104006 commit abe9728

File tree

1 file changed

+11
-0
lines changed
  • dev/tests/integration/testsuite/Magento/Store/_files

1 file changed

+11
-0
lines changed

dev/tests/integration/testsuite/Magento/Store/_files/store.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,18 @@
2222
$store->save();
2323
} else {
2424
if ($store->getId()) {
25+
/** @var \Magento\TestFramework\Helper\Bootstrap $registry */
26+
$registry = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(
27+
\Magento\Framework\Registry::class
28+
);
29+
$registry->unregister('isSecureArea');
30+
$registry->register('isSecureArea', true);
31+
2532
$store->delete();
33+
34+
$registry->unregister('isSecureArea');
35+
$registry->register('isSecureArea', false);
36+
2637
$store = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(\Magento\Store\Model\Store::class);
2738
$store->setData(
2839
[

0 commit comments

Comments
 (0)