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

Go to the source code of this file.

Variables

 $optionValue
 
 $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
 
 $productRepository = $objectManager->create(\Magento\Catalog\Api\ProductRepositoryInterface::class)
 
 $product = $productRepository->get('simple')
 
 $quote = $objectManager->create(\Magento\Quote\Model\Quote::class)
 
 $quoteItemRepository = $objectManager->create(\Magento\Quote\Api\CartItemRepositoryInterface::class)
 
 $cartItem = $objectManager->create(\Magento\Quote\Api\Data\CartItemInterface::class)
 
 $productOption = $objectManager->create(\Magento\Quote\Model\Quote\ProductOptionFactory::class)->create()
 
 $extensionAttributes = $objectManager->create(\Magento\Quote\Api\Data\ProductOptionExtensionFactory::class)->create()
 
 $customOptionFactory = $objectManager->create(\Magento\Catalog\Model\CustomOptions\CustomOptionFactory::class)
 
 $options = []
 

Variable Documentation

◆ $cartItem

$cartItem = $objectManager->create(\Magento\Quote\Api\Data\CartItemInterface::class)

Definition at line 35 of file quote_with_product_and_custom_options.php.

◆ $customOptionFactory

$customOptionFactory = $objectManager->create(\Magento\Catalog\Model\CustomOptions\CustomOptionFactory::class)

Definition at line 40 of file quote_with_product_and_custom_options.php.

◆ $extensionAttributes

$extensionAttributes = $objectManager->create(\Magento\Quote\Api\Data\ProductOptionExtensionFactory::class)->create()

Definition at line 39 of file quote_with_product_and_custom_options.php.

◆ $objectManager

Definition at line 24 of file quote_with_product_and_custom_options.php.

◆ $options

$options = []

Definition at line 41 of file quote_with_product_and_custom_options.php.

◆ $optionValue

$optionValue
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',
]

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

Definition at line 9 of file quote_with_product_and_custom_options.php.

◆ $product

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

Definition at line 28 of file quote_with_product_and_custom_options.php.

◆ $productOption

$productOption = $objectManager->create(\Magento\Quote\Model\Quote\ProductOptionFactory::class)->create()

Definition at line 37 of file quote_with_product_and_custom_options.php.

◆ $productRepository

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

Definition at line 26 of file quote_with_product_and_custom_options.php.

◆ $quote

$quote = $objectManager->create(\Magento\Quote\Model\Quote::class)

Definition at line 31 of file quote_with_product_and_custom_options.php.

◆ $quoteItemRepository

$quoteItemRepository = $objectManager->create(\Magento\Quote\Api\CartItemRepositoryInterface::class)

Definition at line 33 of file quote_with_product_and_custom_options.php.