Skip to content

Commit 58bc35f

Browse files
committed
MAGETWO-68808: catalog_product_attribute is slow
1 parent 6f5cc0d commit 58bc35f

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
*/
66
namespace Magento\Catalog\Test\Unit\Model\Indexer\Product\Eav\Action;
77

8+
/**
9+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
10+
*/
811
class FullTest extends \PHPUnit_Framework_TestCase
912
{
1013
public function testExecuteWithAdapterErrorThrowsException()

lib/internal/Magento/Framework/Indexer/Test/Unit/BatchProviderTest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ public function testGetBatchIds()
6767
$selectMock->expects($this->once())->method('limit')->with(91)->willReturnSelf();
6868

6969
$adapterMock->expects($this->atLeastOnce())->method('quote')->willReturnArgument(0);
70-
$adapterMock->expects($this->once())->method('fetchCol')->with($selectMock, [])->willReturn([1,2,3]);
71-
$this->assertEquals([1,2,3], $this->model->getBatchIds($adapterMock, $selectMock, ['from' => 10, 'to' => 100]));
72-
70+
$adapterMock->expects($this->once())->method('fetchCol')->with($selectMock, [])->willReturn([1, 2, 3]);
71+
$this->assertEquals(
72+
[1, 2, 3],
73+
$this->model->getBatchIds($adapterMock, $selectMock, ['from' => 10, 'to' => 100])
74+
);
7375
}
7476
}

0 commit comments

Comments
 (0)