Skip to content

Commit 1b7e4fb

Browse files
committed
MAGETWO-70743: Custom options are not listed in API call
1 parent b9b980c commit 1b7e4fb

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

dev/tests/integration/testsuite/Magento/Checkout/_files/quote_with_items_and_custom_options_saved_rollback.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,13 @@
44
* See COPYING.txt for license details.
55
*/
66
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
7-
$registry = $objectManager->get(\Magento\Framework\Registry::class);
8-
$registry->unregister('isSecureArea');
9-
$registry->register('isSecureArea', true);
7+
8+
/** @var \Magento\Quote\Model\Quote $quote */
109
$quote = $objectManager->create(\Magento\Quote\Model\Quote::class);
1110
$quote->load('test_order_item_with_items_and_custom_options', 'reserved_order_id');
1211
$quoteId = $quote->getId();
1312
if ($quote->getId()) {
14-
$quote->delete();
13+
$objectManager->get(\Magento\Quote\Model\QuoteRepository::class)->delete($quote);
1514
}
1615

17-
$registry->unregister('isSecureArea');
18-
$registry->register('isSecureArea', false);
19-
2016
require __DIR__ . '/../../Checkout/_files/quote_with_address_rollback.php';

0 commit comments

Comments
 (0)