File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
CatalogInventory/Model/Quote/Item
ConfigurableProduct/Test/Mftf/Test
dev/tests/api-functional/testsuite/Magento/Quote/Api Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,8 @@ public function validate(Observer $observer)
165
165
Data::ERROR_QTY ,
166
166
__ ('This product is out of stock. ' )
167
167
);
168
+ } else {
169
+ $ quoteItem ->addErrorInfo (null , Data::ERROR_QTY );
168
170
}
169
171
$ quoteItem ->getQuote ()->addErrorInfo (
170
172
'stock ' ,
Original file line number Diff line number Diff line change 125
125
<actionGroup ref =" AdminSetStockStatusActionGroup" stepKey =" outOfStockStatus" >
126
126
<argument name =" stockStatus" value =" Out of Stock" />
127
127
</actionGroup >
128
-
128
+
129
129
<actionGroup ref =" SaveProductFormActionGroup" stepKey =" saveSecondProductForm" />
130
130
<!-- Go to created customer page -->
131
131
<comment userInput =" Go to created customer page" stepKey =" goToCreatedCustomerPage" />
158
158
<waitForPageLoad stepKey =" waitForPageLoad" />
159
159
<click selector =" {{AdminOrderFormItemsSection.addSelected}}" stepKey =" clickToAddProductToOrder" />
160
160
<waitForPageLoad stepKey =" waitForNewOrderPageLoad" />
161
- <see userInput =" This product is out of stock. " stepKey =" seeTheErrorMessageDisplayed" />
161
+ <see userInput =" There are no source items with the in stock status " stepKey =" seeTheErrorMessageDisplayed" />
162
162
163
163
<actionGroup ref =" NavigateToNewOrderPageExistingCustomerActionGroup" stepKey =" createNewOrderThirdTime" >
164
164
<argument name =" customer" value =" $createCustomer$" />
Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ public function updateItemDataProvider(): array
265
265
'use_config_backorders ' => 0 ,
266
266
'backorders ' => Stock::BACKORDERS_NO ,
267
267
],
268
- 'This product is out of stock. '
268
+ 'There are no source items with the in stock status '
269
269
],
270
270
[
271
271
[
You can’t perform that action at this time.
0 commit comments