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