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

Go to the source code of this file.

Variables

 $quote = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(\Magento\Quote\Model\Quote::class)
 
 $customerRepository
 
 $customerId = 1
 
 $customer = $customerRepository->getById($customerId)
 
 $quoteIdMask
 

Variable Documentation

◆ $customer

$customer = $customerRepository->getById($customerId)

Definition at line 17 of file quote_with_customer.php.

◆ $customerId

$customerId = 1

Definition at line 16 of file quote_with_customer.php.

◆ $customerRepository

$customerRepository
Initial value:
->create(\Magento\Customer\Api\CustomerRepositoryInterface::class)

Definition at line 14 of file quote_with_customer.php.

◆ $quote

$quote = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(\Magento\Quote\Model\Quote::class)

Definition at line 11 of file quote_with_customer.php.

◆ $quoteIdMask

$quoteIdMask
Initial value:
->create(\Magento\Quote\Model\QuoteIdMaskFactory::class)
->create()

Definition at line 24 of file quote_with_customer.php.