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

Go to the source code of this file.

Variables

 $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
 
 $product = $objectManager->create(\Magento\Catalog\Model\Product::class)
 
 $billingData
 
 $billingAddress
 
 $shippingAddress = clone $billingAddress
 
 $quote = $objectManager->create(\Magento\Quote\Model\Quote::class)
 
 $quoteRepository = $objectManager->get(\Magento\Quote\Api\CartRepositoryInterface::class)
 

Variable Documentation

◆ $billingAddress

$billingAddress
Initial value:
->create(\Magento\Quote\Model\Quote\Address::class, ['data' => $billingData])
$billingData

Definition at line 62 of file quote_express.php.

◆ $billingData

$billingData
Initial value:
= [
'firstname' => 'testname',
'lastname' => 'lastname',
'company' => '',
'email' => '[email protected]',
'street' => [
0 => 'test1',
1 => '',
],
'city' => 'Test',
'region_id' => '1',
'region' => '',
'postcode' => '9001',
'country_id' => 'US',
'telephone' => '11111111',
'fax' => '',
'confirm_password' => '',
'save_in_address_book' => '1',
'use_for_shipping' => '1',
]

Definition at line 41 of file quote_express.php.

◆ $objectManager

Definition at line 21 of file quote_express.php.

◆ $product

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

Definition at line 23 of file quote_express.php.

◆ $quote

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

Definition at line 72 of file quote_express.php.

◆ $quoteRepository

$quoteRepository = $objectManager->get(\Magento\Quote\Api\CartRepositoryInterface::class)

Definition at line 93 of file quote_express.php.

◆ $shippingAddress

$shippingAddress = clone $billingAddress

Definition at line 66 of file quote_express.php.