Skip to content

Commit 22692c7

Browse files
committed
MC-38038: Partial reindex of prices causes empty categories (missed products)
1 parent f4b7937 commit 22692c7

File tree

1 file changed

+5
-2
lines changed
  • app/code/Magento/Catalog/Test/Unit/Model/Indexer/Product/Price/Action

1 file changed

+5
-2
lines changed

app/code/Magento/Catalog/Test/Unit/Model/Indexer/Product/Price/Action/RowsTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,12 @@ public function testBatchProcessing()
184184
$this->catalogProductType->expects($this->any())
185185
->method('getTypesByPriority')
186186
->willReturn([]);
187-
$adapter->expects($this->any())
187+
$adapter->expects($this->once())
188+
->method('getIndexList')
189+
->willReturn(['entity_id'=>['COLUMNS_LIST'=>['test']]]);
190+
$adapter->expects($this->once())
188191
->method('getPrimaryKeyName')
189-
->willReturn(['COLUMNS_LIST'=>['entity_id']]);
192+
->willReturn('entity_id');
190193
$this->actionRows->execute($ids);
191194
}
192195
}

0 commit comments

Comments
 (0)