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

Go to the source code of this file.

Variables

 $installer
 
 $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
 
 $productRepository = $objectManager->create(\Magento\Catalog\Api\ProductRepositoryInterface::class)
 
 $categoryLinkRepository
 
 $categoryLinkManagement
 
 $product = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(\Magento\Catalog\Model\Product::class)
 

Variable Documentation

◆ $categoryLinkManagement

$categoryLinkManagement
Initial value:
= $objectManager->create(
\Magento\Catalog\Api\CategoryLinkManagementInterface::class,
[
'productRepository' => $productRepository,
'categoryLinkRepository' => $categoryLinkRepository
]
)

Definition at line 23 of file categories_with_products.php.

◆ $categoryLinkRepository

$categoryLinkRepository
Initial value:
= $objectManager->create(
\Magento\Catalog\Api\CategoryLinkRepositoryInterface::class,
[
'productRepository' => $productRepository
]
)

Definition at line 15 of file categories_with_products.php.

◆ $installer

$installer
Initial value:

Definition at line 8 of file categories_with_products.php.

◆ $objectManager

Definition at line 13 of file categories_with_products.php.

◆ $product

$product = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(\Magento\Catalog\Model\Product::class)

Definition at line 32 of file categories_with_products.php.

◆ $productRepository

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

Definition at line 14 of file categories_with_products.php.