File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
app/code/Magento/CatalogInventory Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -181,8 +181,6 @@ public function save(\Magento\CatalogInventory\Api\Data\StockItemInterface $stoc
181
181
$ stockItem ->setStockId ($ stockItem ->getStockId ());
182
182
183
183
$ this ->resource ->save ($ stockItem );
184
-
185
- $ this ->indexProcessor ->reindexRow ($ stockItem ->getProductId ());
186
184
} catch (\Exception $ exception ) {
187
185
throw new CouldNotSaveException (__ ('Unable to save Stock Item ' ), $ exception );
188
186
}
Original file line number Diff line number Diff line change @@ -314,7 +314,7 @@ public function testSave()
314
314
->method ('save ' )
315
315
->with ($ this ->stockItemMock )
316
316
->willReturnSelf ();
317
- $ this ->indexProcessorMock ->expects ($ this ->once ())->method ('reindexRow ' )->with ($ productId );
317
+ $ this ->indexProcessorMock ->expects ($ this ->never ())->method ('reindexRow ' )->with ($ productId );
318
318
319
319
$ this ->assertEquals ($ this ->stockItemMock , $ this ->model ->save ($ this ->stockItemMock ));
320
320
}
You can’t perform that action at this time.
0 commit comments