Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 045d826

Browse files
committed
MAGETWO-72866: Redundant indexers invalidation - RIATCS-340
1 parent fef8e37 commit 045d826

File tree

1 file changed

+2
-3
lines changed
  • app/code/Magento/CatalogImportExport/Test/Unit/Model/Indexer/Product/Flat/Plugin

1 file changed

+2
-3
lines changed

app/code/Magento/CatalogImportExport/Test/Unit/Model/Indexer/Product/Flat/Plugin/ImportTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,8 @@ protected function setUp()
4545
->disableOriginalConstructor()
4646
->getMock();
4747

48-
4948
$this->model = (new ObjectManager($this))->getObject(
50-
'Magento\CatalogImportExport\Model\Indexer\Product\Flat\Plugin\Import',
49+
\Magento\CatalogImportExport\Model\Indexer\Product\Flat\Plugin\Import::class,
5150
[
5251
'productFlatIndexerProcessor' => $this->processorMock,
5352
'flatState' => $this->flatStateMock
@@ -66,13 +65,13 @@ public function testAfterImportSourceWithFlatEnabledAndIndexerScheduledDisabled(
6665

6766
public function testAfterImportSourceWithFlatDisabledAndIndexerScheduledDisabled()
6867
{
69-
7068
$this->flatStateMock->expects($this->once())->method('isFlatEnabled')->willReturn(false);
7169
$this->processorMock->expects($this->never())->method('isIndexerScheduled')->willReturn(false);
7270
$this->processorMock->expects($this->never())->method('markIndexerAsInvalid');
7371
$someData = [1, 2, 3];
7472
$this->assertEquals($someData, $this->model->afterImportSource($this->subjectMock, $someData));
7573
}
74+
7675
public function testAfterImportSourceWithFlatEnabledAndIndexerScheduledEnabled()
7776
{
7877
$this->flatStateMock->expects($this->once())->method('isFlatEnabled')->willReturn(true);

0 commit comments

Comments
 (0)