Skip to content

Commit b65d6e9

Browse files
committed
MC-29425: [WebAPI Test] Failing Test: Magento.GraphQl.Quote.Customer.GetCustomerCartTest.testGetCustomerCartSecondStore
- Refactored the tear down
1 parent cd6dc34 commit b65d6e9

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/GetCustomerCartTest.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,11 @@ protected function setUp()
4545
*/
4646
protected function tearDown()
4747
{
48-
/** @var \Magento\Framework\Registry $registry */
49-
$registry = Bootstrap::getObjectManager()->get(\Magento\Framework\Registry::class);
50-
$registry->unregister('isSecureArea');
51-
$registry->register('isSecureArea', true);
52-
5348
/** @var $order \Magento\Quote\Model\Quote */
5449
$quoteCollection = Bootstrap::getObjectManager()->create(\Magento\Quote\Model\ResourceModel\Quote\Collection::class);
5550
foreach ($quoteCollection as $quote) {
5651
$quote->delete();
5752
}
58-
59-
$registry->unregister('isSecureArea');
60-
$registry->register('isSecureArea', false);
61-
6253
parent::tearDown();
6354
}
6455

0 commit comments

Comments
 (0)