Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Variables
products_with_websites_and_stores_rollback.php File Reference

Go to the source code of this file.

Variables

 $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
 
 $productRepository = $objectManager->create(\Magento\Catalog\Api\ProductRepositoryInterface::class)
 
 $registry = $objectManager->get(\Magento\Framework\Registry::class)
 
 try
 

Variable Documentation

◆ $objectManager

Copyright © Magento, Inc. All rights reserved. See COPYING.txt for license details.

Definition at line 9 of file products_with_websites_and_stores_rollback.php.

◆ $productRepository

$productRepository = $objectManager->create(\Magento\Catalog\Api\ProductRepositoryInterface::class)

◆ $registry

$registry = $objectManager->get(\Magento\Framework\Registry::class)

◆ try

try
Initial value:
{
foreach (['simple-2', 'simple-1'] as $sku) {
$product = $productRepository->get($sku, false, null, true);
}
} catch (\Magento\Framework\Exception\NoSuchEntityException $exception) {
}
$registry->unregister('isSecureArea')

Definition at line 21 of file products_with_websites_and_stores_rollback.php.