This repository was archived by the owner on Apr 29, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
app/code/Magento/CatalogImportExport/Test/Unit/Model/Indexer/Product/Flat/Plugin Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,8 @@ protected function setUp()
45
45
->disableOriginalConstructor ()
46
46
->getMock ();
47
47
48
-
49
48
$ 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 ,
51
50
[
52
51
'productFlatIndexerProcessor ' => $ this ->processorMock ,
53
52
'flatState ' => $ this ->flatStateMock
@@ -66,13 +65,13 @@ public function testAfterImportSourceWithFlatEnabledAndIndexerScheduledDisabled(
66
65
67
66
public function testAfterImportSourceWithFlatDisabledAndIndexerScheduledDisabled ()
68
67
{
69
-
70
68
$ this ->flatStateMock ->expects ($ this ->once ())->method ('isFlatEnabled ' )->willReturn (false );
71
69
$ this ->processorMock ->expects ($ this ->never ())->method ('isIndexerScheduled ' )->willReturn (false );
72
70
$ this ->processorMock ->expects ($ this ->never ())->method ('markIndexerAsInvalid ' );
73
71
$ someData = [1 , 2 , 3 ];
74
72
$ this ->assertEquals ($ someData , $ this ->model ->afterImportSource ($ this ->subjectMock , $ someData ));
75
73
}
74
+
76
75
public function testAfterImportSourceWithFlatEnabledAndIndexerScheduledEnabled ()
77
76
{
78
77
$ this ->flatStateMock ->expects ($ this ->once ())->method ('isFlatEnabled ' )->willReturn (true );
You can’t perform that action at this time.
0 commit comments