Skip to content

Commit 3c6b0b7

Browse files
AC-3515::Verify that If quantity gets updated, mini cart subtotal should be updated accordingly
1 parent 0107106 commit 3c6b0b7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/code/Magento/Multishipping/Model/Cart/MultishippingClearItemAddress.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ public function clearAddressItem($subject, $request)
104104
$quote = $this->cartRepository->get($quote->getId());
105105
$this->cartmodel->setQuote($quote);
106106
}
107+
$this->checkoutSession->clearQuote();
107108
} elseif ($this->disableMultishipping->execute($quote) && $this->isVirtualItemInQuote($quote)) {
108109
$quote->setTotalsCollectedFlag(false);
109110
$this->cartRepository->save($quote);

app/code/Magento/Multishipping/Test/Unit/Model/Cart/MultishippingClearItemAddressTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ public function testClearAddressItem(
100100
->willReturn($actionName);
101101
$this->checkoutSessionMock->method('getQuote')
102102
->willReturn($quoteMock);
103-
103+
$this->checkoutSessionMock->method('clearQuote')
104+
->willReturnSelf();
104105
$addressMock = $this->createMock(Address::class);
105106
$addressMock->method('getId')
106107
->willReturn($addressId);

0 commit comments

Comments
 (0)