Skip to content

Commit cd58124

Browse files
author
Roman Lytvynenko
committed
MAGETWO-99491: Configurable options attribute position is not saved correctly via API
1 parent 812534f commit cd58124

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

dev/tests/api-functional/testsuite/Magento/ConfigurableProduct/Api/LinkManagementTest.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,10 @@ public function testAddChildFullRestCreation()
142142
public function testConfigurableOptionPositionPreservation()
143143
{
144144
$productSku = 'configurable-product-sku';
145-
146145
$childProductSkus = [
147146
'simple-product-sku-1',
148147
'simple-product-sku-2'
149148
];
150-
151149
$attributesToAdd = [
152150
'custom_attr_1',
153151
'custom_attr_2',
@@ -214,7 +212,6 @@ public function testConfigurableOptionPositionPreservation()
214212
$this->assertTrue($res);
215213
}
216214

217-
// confirm that the simple product was added
218215
$childProductsDiff = array_diff(
219216
$childProductSkus,
220217
array_column(
@@ -231,14 +228,12 @@ public function testConfigurableOptionPositionPreservation()
231228
$attributesAfterAssign[0]['position'],
232229
'Product 1 attribute option position mismatch'
233230
);
234-
235231
$this->assertEquals(
236232
$attributesBeforeAssign[1]['position'],
237233
$attributesAfterAssign[1]['position'],
238234
'Product 2 attribute option position mismatch'
239235
);
240236

241-
// remove products used during the test
242237
foreach ($childProductSkus as $childSku) {
243238
$this->deleteProduct($childSku);
244239
}

0 commit comments

Comments
 (0)