Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Variables
product_1.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)
 
 $sampleProduct = $productRepository->get('simple')
 
 $product = $objectManager->create(\Magento\Catalog\Model\Product::class)
 

Variable Documentation

◆ $objectManager

Definition at line 15 of file product_1.php.

◆ $product

$product = $objectManager->create(\Magento\Catalog\Model\Product::class)

Definition at line 21 of file product_1.php.

◆ $productRepository

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

Definition at line 17 of file product_1.php.

◆ $sampleProduct

$sampleProduct = $productRepository->get('simple')

Definition at line 18 of file product_1.php.