Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
quote_with_configurable_product_rollback.php
Go to the documentation of this file.
1 <?php
9 
10 $registry->unregister('isSecureArea');
11 $registry->register('isSecureArea', true);
12 
15 $quote = $objectManager->create(\Magento\Quote\Model\Quote::class);
16 $quote->load('test_cart_with_configurable', 'reserved_order_id');
17 $quote->delete();
18 
20 $quoteIdMask = $objectManager->create(\Magento\Quote\Model\QuoteIdMask::class);
21 $quoteIdMask->delete($quote->getId());
22 
23 require __DIR__ . '/product_configurable_rollback.php';
24 
25 $registry->unregister('isSecureArea');
26 $registry->register('isSecureArea', false);
defined('TESTS_BP')||define('TESTS_BP' __DIR__
Definition: _bootstrap.php:60