File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
app/code/Magento/CatalogInventory Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ class StockItemRepository implements StockItemRepositoryInterface
77
77
78
78
/**
79
79
* @var Processor
80
+ * @deprecated
80
81
*/
81
82
protected $ indexProcessor ;
82
83
@@ -181,8 +182,6 @@ public function save(\Magento\CatalogInventory\Api\Data\StockItemInterface $stoc
181
182
$ stockItem ->setStockId ($ stockItem ->getStockId ());
182
183
183
184
$ this ->resource ->save ($ stockItem );
184
-
185
- $ this ->indexProcessor ->reindexRow ($ stockItem ->getProductId ());
186
185
} catch (\Exception $ exception ) {
187
186
throw new CouldNotSaveException (__ ('Unable to save Stock Item ' ), $ exception );
188
187
}
Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ public function testSave()
304
304
->method ('save ' )
305
305
->with ($ this ->stockItemMock )
306
306
->willReturnSelf ();
307
- $ this ->indexProcessorMock ->expects ($ this ->once ())->method ('reindexRow ' )->with ($ productId );
307
+ $ this ->indexProcessorMock ->expects ($ this ->never ())->method ('reindexRow ' )->with ($ productId );
308
308
309
309
$ this ->assertEquals ($ this ->stockItemMock , $ this ->model ->save ($ this ->stockItemMock ));
310
310
}
You can’t perform that action at this time.
0 commit comments