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

Go to the source code of this file.

Variables

 $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
 
 $registry
 
 $website = $objectManager->get(Magento\Store\Model\Website::class)
 
 $productRepository = $objectManager->create(\Magento\Catalog\Api\ProductRepositoryInterface::class)
 
 try
 

Variable Documentation

◆ $objectManager

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

Definition at line 7 of file product_with_two_websites_rollback.php.

◆ $productRepository

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

Definition at line 23 of file product_with_two_websites_rollback.php.

◆ $registry

$registry
Initial value:
->get(\Magento\Framework\Registry::class)

Definition at line 10 of file product_with_two_websites_rollback.php.

◆ $website

$website = $objectManager->get(Magento\Store\Model\Website::class)

Definition at line 16 of file product_with_two_websites_rollback.php.

◆ try

try
Initial value:
{
$firstProduct = $productRepository->get('unique-simple-azaza')

Definition at line 25 of file product_with_two_websites_rollback.php.