Skip to content

Commit 5c86bf3

Browse files
author
Yauhen_Lyskavets
committed
MAGETWO-91694: Product does not get removed from flat product table after getting disabled
- Fix units
1 parent 28066af commit 5c86bf3

File tree

1 file changed

+1
-0
lines changed
  • app/code/Magento/Catalog/Test/Unit/Model/Indexer/Product/Flat/Action

1 file changed

+1
-0
lines changed

app/code/Magento/Catalog/Test/Unit/Model/Indexer/Product/Flat/Action/EraserTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public function testRemoveDeletedProducts()
5454
$productsToDeleteIds = [1, 2];
5555
$select = $this->createMock(\Magento\Framework\DB\Select::class);
5656
$select->expects($this->once())->method('from')->with('catalog_product_entity')->will($this->returnSelf());
57+
$select->expects($this->once())->method('columns')->with('entity_id')->will($this->returnSelf());
5758
$select->expects($this->once())->method('where')->with('entity_id IN(?)', $productsToDeleteIds)
5859
->will($this->returnSelf());
5960
$products = [['entity_id' => 2]];

0 commit comments

Comments
 (0)