magento / magento/inventory

Fix Magento\Quote\Model\QuoteTest::testAddProductUpdateItem

Open
#1,037 1 comment 0 reactions 1 assignee Claimed by @milindsingh View on GitHub
Bug Progress: dev in progress Progress: good first issue
Dominant language
PHP
Stars
357
Forks
262
PR merge metrics
No merged PRs in 30d

Description

Integration test `\Magento\Quote\Model\QuoteTest::testAddProductUpdateItem` failed as expected error message is `We don't have as many "Simple Product" as you requested.` but MSI implementation returns `The requested qty is not available` (see `\Magento\InventorySales\Model\IsProductSalableForRequestedQtyCondition\IsSalableWithReservationsCondition::execute`).

MSI contains temporal fix with removed expected exception message that should be ported to mainline or replaced with a more appropriate solution.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.