Skip to content

Commit 8efc49d

Browse files
committed
MAGETWO-68808: catalog_product_attribute is slow
1 parent 7842e90 commit 8efc49d

File tree

1 file changed

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

1 file changed

+2
-3
lines changed

app/code/Magento/Catalog/Test/Unit/Model/Indexer/Product/Eav/Action/FullTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ public function testExecute()
9595
$eavSource->expects($this->atLeastOnce())->method('getConnection')->willReturn($connectionMock);
9696
$eavDecimal->expects($this->atLeastOnce())->method('getConnection')->willReturn($connectionMock);
9797

98-
9998
$eavDecimal->expects($this->once())
10099
->method('reindexEntities')
101100
->with($ids);
@@ -124,7 +123,7 @@ public function testExecute()
124123
$batchProviderMock = $this->getMock(\Magento\Framework\Indexer\BatchProviderInterface::class);
125124
$batchProviderMock->expects($this->atLeastOnce())
126125
->method('getBatches')
127-
->willReturn([['from' =>10, 'to' => 100]]);
126+
->willReturn([['from' => 10, 'to' => 100]]);
128127
$batchProviderMock->expects($this->atLeastOnce())
129128
->method('getBatchIds')
130129
->willReturn($ids);
@@ -136,7 +135,7 @@ public function testExecute()
136135
'',
137136
false
138137
);
139-
$selectMock = $this->getMockBuilder(\Magento\Framework\DB\Select::class)
138+
$selectMock = $this->getMockBuilder(\Magento\Framework\DB\Select::class)
140139
->disableOriginalConstructor()
141140
->getMock();
142141

0 commit comments

Comments
 (0)