Skip to content

Commit b9b980c

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

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
7+
$registry = $objectManager->get(\Magento\Framework\Registry::class);
8+
$registry->unregister('isSecureArea');
9+
$registry->register('isSecureArea', true);
10+
$quote = $objectManager->create(\Magento\Quote\Model\Quote::class);
11+
$quote->load('test_order_item_with_items_and_custom_options', 'reserved_order_id');
12+
$quoteId = $quote->getId();
13+
if ($quote->getId()) {
14+
$quote->delete();
15+
}
16+
17+
$registry->unregister('isSecureArea');
18+
$registry->register('isSecureArea', false);
19+
20+
require __DIR__ . '/../../Checkout/_files/quote_with_address_rollback.php';

0 commit comments

Comments
 (0)