예제 #1
0
 public function testSetCustomerWithAddressChange()
 {
     /** @var \Magento\Customer\Service\V1\Data\Customer $customerDataMock */
     $customerDataMock = $this->getMock('Magento\\Customer\\Service\\V1\\Data\\Customer', [], [], '', false);
     /** @var \Magento\Sales\Model\Quote\Address $customerDataMock */
     $quoteAddressMock = $this->getMock('Magento\\Sales\\Model\\Quote\\Address', [], [], '', false);
     $this->_quoteMock->expects($this->once())->method('assignCustomerWithAddressChange')->with($customerDataMock, $quoteAddressMock, $quoteAddressMock);
     $customerDataMock->expects($this->once())->method('getId');
     $this->_checkoutModel->setCustomerWithAddressChange($customerDataMock, $quoteAddressMock, $quoteAddressMock);
 }