Skip to content

Commit d678910

Browse files
committed
ACP2E-2222: EAV Indexer performance
- addressed build unit issue
1 parent c5a9761 commit d678910

File tree

1 file changed

+4
-2
lines changed
  • app/code/Magento/Catalog/Test/Unit/Model/ResourceModel/Product/Indexer/Eav

1 file changed

+4
-2
lines changed

app/code/Magento/Catalog/Test/Unit/Model/ResourceModel/Product/Indexer/Eav/SourceTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,14 @@ protected function setUp(): void
9797
public function testReindexEntities(): void
9898
{
9999
$products = [1, 2];
100-
$select = $this->createMock(Select::class);
100+
$select = $this->createPartialMock(
101+
Select::class,
102+
['from', 'join', 'where', 'joinLeft', 'group', 'columns']
103+
);
101104
$select->expects($this->any())->method('from')->willReturn($select);
102105
$select->expects($this->any())->method('join')->willReturn($select);
103106
$select->expects($this->any())->method('where')->willReturn($select);
104107
$select->expects($this->any())->method('joinLeft')->willReturn($select);
105-
$select->expects($this->any())->method('joinLeft')->willReturn($select);
106108
$select->expects($this->any())->method('group')->willReturn($select);
107109
$select->expects($this->any())->method('columns')->willReturn($select);
108110
$connection = $this->createMock(AdapterInterface::class);

0 commit comments

Comments
 (0)