Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
product_simple_with_decimal_qty_rollback.php
Go to the documentation of this file.
1 <?php
8 
9 \Magento\TestFramework\Helper\Bootstrap::getInstance()->getInstance()->reinitialize();
10 
13 
14 $registry->unregister('isSecureArea');
15 $registry->register('isSecureArea', true);
16 
19  ->get(\Magento\Catalog\Api\ProductRepositoryInterface::class);
20 try {
21  $product = $productRepository->get('simple_with_decimal_qty', false, null, true);
23 } catch (NoSuchEntityException $e) {
24 }
25 $registry->unregister('isSecureArea');
26 $registry->register('isSecureArea', false);