1010
1111/**
1212 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
13- */
13+ */
1414class RowTest extends \PHPUnit \Framework \TestCase
1515{
1616 /**
@@ -75,7 +75,9 @@ protected function setUp()
7575 $ this ->storeManager ->expects ($ this ->any ())->method ('getStores ' )->will ($ this ->returnValue ([$ this ->store ]));
7676 $ this ->flatItemEraser = $ this ->createMock (\Magento \Catalog \Model \Indexer \Product \Flat \Action \Eraser::class);
7777 $ this ->flatItemWriter = $ this ->createMock (\Magento \Catalog \Model \Indexer \Product \Flat \Action \Indexer::class);
78- $ this ->flatTableBuilder = $ this ->createMock (\Magento \Catalog \Model \Indexer \Product \Flat \FlatTableBuilder::class);
78+ $ this ->flatTableBuilder = $ this ->createMock (
79+ \Magento \Catalog \Model \Indexer \Product \Flat \FlatTableBuilder::class
80+ );
7981 $ this ->productIndexerHelper = $ this ->createMock (\Magento \Catalog \Helper \Product \Flat \Indexer::class);
8082 $ statusAttributeMock = $ this ->getMockBuilder (\Magento \Eav \Model \Entity \Attribute::class)
8183 ->disableOriginalConstructor ()
@@ -101,18 +103,23 @@ protected function setUp()
101103 )->willReturnSelf ();
102104 $ selectMock ->expects ($ this ->any ())->method ('where ' )->willReturnSelf ();
103105 $ pdoMock = $ this ->createMock (\Zend_Db_Statement_Pdo::class);
104- $ this ->connection ->expects ($ this ->any ())->method ('query ' )->with ($ selectMock )->will ($ this ->returnValue ($ pdoMock ));
106+ $ this ->connection ->expects ($ this ->any ())
107+ ->method ('query ' )
108+ ->with ($ selectMock )
109+ ->will ($ this ->returnValue ($ pdoMock ));
105110 $ pdoMock ->expects ($ this ->any ())->method ('fetch ' )->will ($ this ->returnValue (['value ' => 1 ]));
106111
107112 $ this ->model = $ objectManager ->getObject (
108- \Magento \Catalog \Model \Indexer \Product \Flat \Action \Row::class, [
109- 'resource ' => $ this ->resource ,
110- 'storeManager ' => $ this ->storeManager ,
111- 'productHelper ' => $ this ->productIndexerHelper ,
112- 'flatItemEraser ' => $ this ->flatItemEraser ,
113- 'flatItemWriter ' => $ this ->flatItemWriter ,
114- 'flatTableBuilder ' => $ this ->flatTableBuilder ,
115- ]);
113+ \Magento \Catalog \Model \Indexer \Product \Flat \Action \Row::class,
114+ [
115+ 'resource ' => $ this ->resource ,
116+ 'storeManager ' => $ this ->storeManager ,
117+ 'productHelper ' => $ this ->productIndexerHelper ,
118+ 'flatItemEraser ' => $ this ->flatItemEraser ,
119+ 'flatItemWriter ' => $ this ->flatItemWriter ,
120+ 'flatTableBuilder ' => $ this ->flatTableBuilder
121+ ]
122+ );
116123 }
117124
118125 /**
0 commit comments