Skip to content

Commit 8488aa7

Browse files
author
Olga Nakonechna
committed
MAGETWO-52974: CLONE - Configurable product options not saved when editing
1 parent e825835 commit 8488aa7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

dev/tests/integration/testsuite/Magento/ConfigurableProduct/Model/Product/Type/ConfigurableTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ public function testGetSelectedAttributesInfo()
301301

302302
$product->addCustomOption('attributes', serialize([$attribute['attribute_id'] => $optionValueId]));
303303
$info = $this->model->getSelectedAttributesInfo($product);
304-
$this->assertEquals('Test Configurable', $info['label']);
305-
$this->assertEquals('Option 1', $info['value']);
304+
$this->assertEquals('Test Configurable', $info[0]['label']);
305+
$this->assertEquals('Option 1', $info[0]['value']);
306306
}
307307

308308
/**
@@ -323,8 +323,8 @@ public function testGetSelectedAttributesInfoForStore()
323323

324324
$attribute->getProductAttribute()->setStoreLabel('store label');
325325
$info = $this->model->getSelectedAttributesInfo($this->product);
326-
$this->assertEquals('store label', $info['label']);
327-
$this->assertEquals('Option 1', $info['value']);
326+
$this->assertEquals('store label', $info[0]['label']);
327+
$this->assertEquals('Option 1', $info[0]['value']);
328328
}
329329

330330
/**
@@ -371,8 +371,8 @@ public function testGetOrderOptions()
371371
$result = $this->model->getOrderOptions($product);
372372
$this->assertArrayHasKey('info_buyRequest', $result);
373373
$this->assertArrayHasKey('attributes_info', $result);
374-
$this->assertEquals('Test Configurable', $result['attributes_info']['label']);
375-
$this->assertEquals('Option 1', $result['attributes_info']['value']);
374+
$this->assertEquals('Test Configurable', $result['attributes_info'][0]['label']);
375+
$this->assertEquals('Option 1', $result['attributes_info'][0]['value']);
376376
$this->assertArrayHasKey('product_calculations', $result);
377377
$this->assertArrayHasKey('shipment_type', $result);
378378
$this->assertEquals(

0 commit comments

Comments
 (0)