Skip to content

Commit e6ea90e

Browse files
author
Mastiuhin Olexandr
committed
MC-28956: Discounted shipping price is incorrectly displayed on multishipping review order page
1 parent b43daec commit e6ea90e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,13 +420,16 @@ public function testSetShippingMethods()
420420
$methodsArray = [1 => 'flatrate_flatrate', 2 => 'tablerate_bestway'];
421421
$addressId = 1;
422422
$addressMock = $this->getMockBuilder(QuoteAddress::class)
423-
->setMethods(['getId', 'setShippingMethod'])
423+
->setMethods(['getId', 'setShippingMethod', 'setCollectShippingRates'])
424424
->disableOriginalConstructor()
425425
->getMock();
426426

427427
$addressMock->expects($this->once())->method('getId')->willReturn($addressId);
428428
$this->quoteMock->expects($this->once())->method('getAllShippingAddresses')->willReturn([$addressMock]);
429429
$addressMock->expects($this->once())->method('setShippingMethod')->with($methodsArray[$addressId]);
430+
$addressMock->expects($this->once())
431+
->method('setCollectShippingRates')
432+
->with(true);
430433
$this->quoteMock->expects($this->once())
431434
->method('__call')
432435
->with('setTotalsCollectedFlag', [false])

0 commit comments

Comments
 (0)