@@ -122,11 +122,7 @@ public function testBuild()
122
122
$ eavCustomValueField = $ eavCustomField . $ valueFieldSuffix ;
123
123
$ this ->flatIndexerMock ->expects ($ this ->once ())->method ('getAttributes ' )->willReturn ([]);
124
124
$ this ->flatIndexerMock ->expects ($ this ->exactly (3 ))->method ('getFlatColumns ' )
125
- ->willReturnOnConsecutiveCalls (
126
- [],
127
- [$ eavCustomValueField => []],
128
- [$ eavCustomValueField => []]
129
- );
125
+ ->willReturnOnConsecutiveCalls ([], [$ eavCustomValueField => []], [$ eavCustomValueField => []]);
130
126
$ this ->flatIndexerMock ->expects ($ this ->once ())->method ('getFlatIndexes ' )->willReturn ([]);
131
127
$ statusAttributeMock = $ this ->getMockBuilder (\Magento \Eav \Model \Entity \Attribute::class)
132
128
->disableOriginalConstructor ()
@@ -137,24 +133,16 @@ public function testBuild()
137
133
$ this ->flatIndexerMock ->expects ($ this ->once ())->method ('getTablesStructure ' )
138
134
->willReturn (
139
135
[
140
- 'catalog_product_entity ' => [
141
- $ linkField => $ statusAttributeMock
142
- ],
136
+ 'catalog_product_entity ' => [$ linkField => $ statusAttributeMock ],
143
137
'catalog_product_entity_int ' => [
144
138
$ linkField => $ statusAttributeMock ,
145
139
$ eavCustomField => $ eavCustomAttributeMock
146
140
]
147
141
]
148
142
);
149
143
$ this ->flatIndexerMock ->expects ($ this ->atLeastOnce ())->method ('getTable ' )
150
- ->withConsecutive (
151
- [$ tableName ],
152
- ['catalog_product_website ' ]
153
- )
154
- ->willReturnOnConsecutiveCalls (
155
- $ tableName ,
156
- 'catalog_product_website '
157
- );
144
+ ->withConsecutive ([$ tableName ], ['catalog_product_website ' ])
145
+ ->willReturnOnConsecutiveCalls ($ tableName , 'catalog_product_website ' );
158
146
$ this ->flatIndexerMock ->expects ($ this ->once ())->method ('getAttribute ' )
159
147
->with ('status ' )
160
148
->willReturn ($ statusAttributeMock );
0 commit comments