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

Go to the source code of this file.

Variables

 $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
 
 $addressData = include __DIR__ . '/../../../Magento/Sales/_files/address_data.php'
 
 $billingAddress = $objectManager->create(\Magento\Sales\Model\Order\Address::class, ['data' => $addressData])
 
 $shippingAddress = clone $billingAddress
 
 $payment = $objectManager->create(\Magento\Sales\Model\Order\Payment::class)
 
 $product = $objectManager->create(\Magento\Catalog\Model\Product::class)
 
 $repository = $objectManager->create(\Magento\Catalog\Model\ProductRepository::class)
 
 $optionValuesByType
 
 $requestInfo = ['options' => []]
 
 $productOptions = $product->getOptions()
 
 $orderItem = $objectManager->create(\Magento\Sales\Model\Order\Item::class)
 
 $order = $objectManager->create(\Magento\Sales\Model\Order::class)
 

Variable Documentation

◆ $addressData

$addressData = include __DIR__ . '/../../../Magento/Sales/_files/address_data.php'

◆ $billingAddress

$billingAddress = $objectManager->create(\Magento\Sales\Model\Order\Address::class, ['data' => $addressData])

◆ $objectManager

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

Definition at line 9 of file order_item_with_product_and_custom_options.php.

◆ $optionValuesByType

$optionValuesByType
Initial value:
= [
'field' => 'Test value',
'date_time' => [
'year' => '2015',
'month' => '9',
'day' => '9',
'hour' => '2',
'minute' => '2',
'day_part' => 'am',
'date_internal' => '',
],
'drop_down' => '3-1-select',
'radio' => '4-1-radio',
]

Definition at line 27 of file order_item_with_product_and_custom_options.php.

◆ $order

$order = $objectManager->create(\Magento\Sales\Model\Order::class)

◆ $orderItem

$orderItem = $objectManager->create(\Magento\Sales\Model\Order\Item::class)

◆ $payment

$payment = $objectManager->create(\Magento\Sales\Model\Order\Payment::class)

◆ $product

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

◆ $productOptions

$productOptions = $product->getOptions()

◆ $repository

$repository = $objectManager->create(\Magento\Catalog\Model\ProductRepository::class)

◆ $requestInfo

$requestInfo = ['options' => []]

◆ $shippingAddress

$shippingAddress = clone $billingAddress