Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Variables
order_item_with_configurable_and_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)
 
 $eavConfig = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(\Magento\Eav\Model\Config::class)
 
 $attribute = $eavConfig->getAttribute('catalog_product', 'test_configurable')
 
 $options = $objectManager->create(\Magento\Eav\Model\ResourceModel\Entity\Attribute\Option\Collection::class)
 
 $option
 
 $requestInfo
 
 $order = $objectManager->create(\Magento\Sales\Model\Order::class)
 
 $orderItem = $objectManager->create(\Magento\Sales\Model\Order\Item::class)
 

Variable Documentation

◆ $addressData

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

Definition at line 11 of file order_item_with_configurable_and_options.php.

◆ $attribute

$attribute = $eavConfig->getAttribute('catalog_product', 'test_configurable')

Definition at line 28 of file order_item_with_configurable_and_options.php.

◆ $billingAddress

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

Definition at line 13 of file order_item_with_configurable_and_options.php.

◆ $eavConfig

$eavConfig = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(\Magento\Eav\Model\Config::class)

Definition at line 27 of file order_item_with_configurable_and_options.php.

◆ $objectManager

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

Definition at line 9 of file order_item_with_configurable_and_options.php.

◆ $option

$option
Initial value:
= $options->setAttributeFilter($attribute->getId())
->getFirstItem()

Definition at line 32 of file order_item_with_configurable_and_options.php.

◆ $options

$options = $objectManager->create(\Magento\Eav\Model\ResourceModel\Entity\Attribute\Option\Collection::class)

Definition at line 31 of file order_item_with_configurable_and_options.php.

◆ $order

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

Definition at line 42 of file order_item_with_configurable_and_options.php.

◆ $orderItem

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

Definition at line 49 of file order_item_with_configurable_and_options.php.

◆ $payment

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

Definition at line 19 of file order_item_with_configurable_and_options.php.

◆ $product

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

Definition at line 23 of file order_item_with_configurable_and_options.php.

◆ $requestInfo

$requestInfo
Initial value:
= [
'qty' => 1,
'super_attribute' => [
$attribute->getId() => $option->getId(),
],
]

Definition at line 35 of file order_item_with_configurable_and_options.php.

◆ $shippingAddress

$shippingAddress = clone $billingAddress

Definition at line 16 of file order_item_with_configurable_and_options.php.