Skip to content

Commit 602b6aa

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-94329' into 2.3-develop-pr34
2 parents 276a89a + 1a29bc2 commit 602b6aa

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

app/code/Magento/Multishipping/Model/Checkout/Type/Multishipping.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,7 @@ protected function _prepareOrder(\Magento\Quote\Model\Quote\Address $address)
693693
$order->setIsVirtual(1);
694694
} else {
695695
$order->setShippingAddress($this->quoteAddressToOrderAddress->convert($address));
696+
$order->setShippingMethod($address->getShippingMethod());
696697
}
697698

698699
$order->setPayment($this->quotePaymentToOrderPayment->convert($quote->getPayment()));

app/code/Magento/Multishipping/Test/Unit/Model/Checkout/Type/MultishippingTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,11 +659,13 @@ private function getOrderMock(
659659
'getId',
660660
'getCanSendNewEmailFlag',
661661
'getItems',
662+
'setShippingMethod',
662663
]
663664
)->getMock();
664665
$orderMock->method('setQuote')->with($this->quoteMock);
665666
$orderMock->method('setBillingAddress')->with($orderAddressMock)->willReturnSelf();
666667
$orderMock->method('setShippingAddress')->with($orderAddressMock)->willReturnSelf();
668+
$orderMock->expects($this->once())->method('setShippingMethod')->with('carrier')->willReturnSelf();
667669
$orderMock->method('setPayment')->with($orderPaymentMock)->willReturnSelf();
668670
$orderMock->method('addItem')->with($orderItemMock)->willReturnSelf();
669671
$orderMock->method('getIncrementId')->willReturn('1');

0 commit comments

Comments
 (0)