Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
CheckoutTest Class Reference
Inheritance diagram for CheckoutTest:
AbstractController

Public Member Functions

 setUp ()
 
- Public Member Functions inherited from AbstractController
 getRequest ()
 
 getResponse ()
 
 assert404NotFound ()
 
 assertHeaderPcre ($headerName, $valueRegex)
 
 assertRedirect (\PHPUnit\Framework\Constraint\Constraint $urlConstraint=null)
 

Protected Attributes

 $quote
 
 $checkoutSession
 
- Protected Attributes inherited from AbstractController
 $_runCode = ''
 
 $_runScope = 'store'
 
 $_runOptions = []
 
 $_request
 
 $_response
 
 $_objectManager
 
 $_assertSessionErrors = false
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractController
 _getBootstrap ()
 
 setUp ()
 
 tearDown ()
 
 assertPostConditions ()
 
 getMessages ( $messageType=null, $messageManagerClass=\Magento\Framework\Message\Manager::class)
 

Detailed Description

Test class for \Magento\Multishipping\Controller\Checkout

@magentoAppArea frontend @magentoDataFixture Magento/Sales/_files/quote.php @magentoDataFixture Magento/Customer/_files/customer.php

Definition at line 17 of file CheckoutTest.php.

Member Function Documentation

◆ setUp()

setUp ( )

Definition at line 32 of file CheckoutTest.php.

33  {
34  parent::setUp();
35  $this->quote = $this->_objectManager->create(\Magento\Quote\Model\Quote::class);
36  $this->checkoutSession = $this->_objectManager->get(\Magento\Checkout\Model\Session::class);
37 
38  $this->quote->load('test01', 'reserved_order_id');
39  $this->checkoutSession->setQuoteId($this->quote->getId());
40  $this->checkoutSession->setCartWasUpdated(false);
41  }

Field Documentation

◆ $checkoutSession

$checkoutSession
protected

Definition at line 27 of file CheckoutTest.php.

◆ $quote

$quote
protected

Definition at line 22 of file CheckoutTest.php.


The documentation for this class was generated from the following file: