Skip to content

Commit e825835

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

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,7 +301,8 @@ public function testGetSelectedAttributesInfo()
301301

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

307308
/**
@@ -322,7 +323,8 @@ public function testGetSelectedAttributesInfoForStore()
322323

323324
$attribute->getProductAttribute()->setStoreLabel('store label');
324325
$info = $this->model->getSelectedAttributesInfo($this->product);
325-
$this->assertEquals([['label' => 'store label', 'value' => 'Option 1']], $info);
326+
$this->assertEquals('store label', $info['label']);
327+
$this->assertEquals('Option 1', $info['value']);
326328
}
327329

328330
/**
@@ -369,10 +371,8 @@ public function testGetOrderOptions()
369371
$result = $this->model->getOrderOptions($product);
370372
$this->assertArrayHasKey('info_buyRequest', $result);
371373
$this->assertArrayHasKey('attributes_info', $result);
372-
$this->assertEquals(
373-
[['label' => 'Test Configurable', 'value' => 'Option 1']],
374-
$result['attributes_info']
375-
);
374+
$this->assertEquals('Test Configurable', $result['attributes_info']['label']);
375+
$this->assertEquals('Option 1', $result['attributes_info']['value']);
376376
$this->assertArrayHasKey('product_calculations', $result);
377377
$this->assertArrayHasKey('shipment_type', $result);
378378
$this->assertEquals(

0 commit comments

Comments
 (0)