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

Go to the source code of this file.

Variables

 $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
 
 $registry = $objectManager->get(\Magento\Framework\Registry::class)
 
 $productRepository = $objectManager->create(\Magento\Catalog\Api\ProductRepositoryInterface::class)
 
 $productsToDelete = ['simple', '12345', 'simple-3', 'simple-4']
 
 $collection = $objectManager->create(\Magento\Catalog\Model\ResourceModel\Category\Collection::class)
 

Variable Documentation

◆ $collection

$collection = $objectManager->create(\Magento\Catalog\Model\ResourceModel\Category\Collection::class)

Definition at line 30 of file categories_rollback.php.

◆ $objectManager

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

Definition at line 7 of file categories_rollback.php.

◆ $productRepository

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

Definition at line 16 of file categories_rollback.php.

◆ $productsToDelete

$productsToDelete = ['simple', '12345', 'simple-3', 'simple-4']

Definition at line 17 of file categories_rollback.php.

◆ $registry

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

Definition at line 9 of file categories_rollback.php.