Skip to content

Commit dffcf1b

Browse files
committed
MAGETWO-90357: After Deleting Product Update shopping cart is empty
1 parent 92c3ac6 commit dffcf1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Sales/Observer/Backend/SubtractQtyFromQuotesObserver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ public function __construct(\Magento\Quote\Model\ResourceModel\Quote $quote)
3131
public function execute(\Magento\Framework\Event\Observer $observer)
3232
{
3333
$product = $observer->getEvent()->getProduct();
34-
$this->_quote->substractProductFromQuotes($product);
34+
$this->_quote->subtractProductFromQuotes($product);
3535
}
3636
}

app/code/Magento/Sales/Test/Unit/Observer/Backend/SubtractQtyFromQuotesObserverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function testSubtractQtyFromQuotes()
4848
['getId', 'getStatus', '__wakeup']
4949
);
5050
$this->_eventMock->expects($this->once())->method('getProduct')->will($this->returnValue($productMock));
51-
$this->_quoteMock->expects($this->once())->method('substractProductFromQuotes')->with($productMock);
51+
$this->_quoteMock->expects($this->once())->method('subtractProductFromQuotes')->with($productMock);
5252
$this->_model->execute($this->_observerMock);
5353
}
5454
}

0 commit comments

Comments
 (0)