@@ -93,15 +93,18 @@ public function testAddChildFullRestCreation()
93
93
$ this ->createConfigurableProduct ($ productSku );
94
94
$ attribute = $ this ->attributeRepository ->get ('catalog_product ' , 'test_configurable ' );
95
95
96
- $ this ->addOptionToConfigurableProduct ($ productSku , $ attribute ->getAttributeId (),
96
+ $ this ->addOptionToConfigurableProduct (
97
+ $ productSku ,
98
+ $ attribute ->getAttributeId (),
97
99
[
98
100
[
99
101
'value_index ' => $ attribute ->getOptions ()[1 ]->getValue ()
100
102
]
101
103
]
102
104
);
103
105
104
- $ this ->createSimpleProduct ($ childSku ,
106
+ $ this ->createSimpleProduct (
107
+ $ childSku ,
105
108
[
106
109
[
107
110
'attribute_code ' => 'test_configurable ' ,
@@ -168,7 +171,12 @@ public function testConfigurableOptionPositionPreservation()
168
171
foreach ($ options as $ option ) {
169
172
$ valueIndexesData []['value_index ' ]= $ option ->getValue ();
170
173
}
171
- $ this ->addOptionToConfigurableProduct ($ productSku , $ attribute ->getAttributeId (), $ valueIndexesData , $ position );
174
+ $ this ->addOptionToConfigurableProduct (
175
+ $ productSku ,
176
+ $ attribute ->getAttributeId (),
177
+ $ valueIndexesData ,
178
+ $ position
179
+ );
172
180
$ position ++;
173
181
}
174
182
@@ -210,7 +218,9 @@ public function testConfigurableOptionPositionPreservation()
210
218
$ childProductsDiff = array_diff (
211
219
$ childProductSkus ,
212
220
array_column (
213
- $ this ->getChildren ($ productSku ), 'sku ' )
221
+ $ this ->getChildren ($ productSku ),
222
+ 'sku '
223
+ )
214
224
);
215
225
$ this ->assertCount (0 , $ childProductsDiff , 'Added child product count mismatch expected result ' );
216
226
@@ -241,7 +251,8 @@ public function testConfigurableOptionPositionPreservation()
241
251
* @param string $sku
242
252
* @return bool
243
253
*/
244
- private function deleteProduct (string $ sku ): bool {
254
+ private function deleteProduct (string $ sku ): bool
255
+ {
245
256
$ serviceInfo = [
246
257
'rest ' => [
247
258
'resourcePath ' => '/V1/products/ ' . $ sku ,
0 commit comments