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

Go to the source code of this file.

Variables

 $registry = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(\Magento\Framework\Registry::class)
 
 $productRepository
 
 try
 
 $product = $productRepository->get('simple2', false, null, true)
 

Variable Documentation

◆ $product

$product = $productRepository->get('simple2', false, null, true)

Definition at line 24 of file product_simple_with_url_key_rollback.php.

◆ $productRepository

$productRepository
Initial value:
->get(\Magento\Catalog\Api\ProductRepositoryInterface::class)

Definition at line 19 of file product_simple_with_url_key_rollback.php.

◆ $registry

$registry = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(\Magento\Framework\Registry::class)

Definition at line 13 of file product_simple_with_url_key_rollback.php.

◆ try

try
Initial value:
{
$product = $productRepository->get('simple1', false, null, true)

Definition at line 21 of file product_simple_with_url_key_rollback.php.