Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Variables
product_simple_with_all_fields.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)
 
 $category = $objectManager->create(\Magento\Catalog\Model\Category::class)
 
 $product = $productRepository->get('simple', true)
 
 $eavAttributeValues
 
 $categoryLinkManagement = $objectManager->create(\Magento\Catalog\Api\CategoryLinkManagementInterface::class)
 

Variable Documentation

◆ $category

$category = $objectManager->create(\Magento\Catalog\Model\Category::class)

Definition at line 16 of file product_simple_with_all_fields.php.

◆ $categoryLinkManagement

$categoryLinkManagement = $objectManager->create(\Magento\Catalog\Api\CategoryLinkManagementInterface::class)

Definition at line 68 of file product_simple_with_all_fields.php.

◆ $eavAttributeValues

$eavAttributeValues
Initial value:
= [
'category_ids' => [10],
'cost' => 2.234,
'country_of_manufacture' => 'US',
'msrp' => 10.48,
'gift_message_available' => 0,
'msrp_display_actual_price_type' => 0,
'news_from_date' => '2017-08-10',
'news_to_date' => '2017-08-11',
'old_id' => 35235,
'options_container' => 'Options Container',
'required_options' => 1,
'special_price' => 3.82,
'special_from_date' => date('Y-m-d', strtotime('-1 day')),
'special_to_date' => date('Y-m-d', strtotime('+1 day')),
'manufacturer' => 'Magento Inc.',
]

Definition at line 43 of file product_simple_with_all_fields.php.

◆ $objectManager

Definition at line 11 of file product_simple_with_all_fields.php.

◆ $product

$product = $productRepository->get('simple', true)

Definition at line 42 of file product_simple_with_all_fields.php.

◆ $productRepository

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

Definition at line 14 of file product_simple_with_all_fields.php.