From 421ded5c22e0c500b87694d9078ffefadcfe9ba6 Mon Sep 17 00:00:00 2001 From: aakimov Date: Thu, 22 Sep 2016 11:49:06 +0300 Subject: [PATCH] MAGETWO-58609: default_frontend_label is Ignored during Attribute Update via API - Added API test; --- .../Magento/Catalog/Api/ProductAttributeRepositoryTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dev/tests/api-functional/testsuite/Magento/Catalog/Api/ProductAttributeRepositoryTest.php b/dev/tests/api-functional/testsuite/Magento/Catalog/Api/ProductAttributeRepositoryTest.php index 0571aa9ddad03..558c7a020f356 100644 --- a/dev/tests/api-functional/testsuite/Magento/Catalog/Api/ProductAttributeRepositoryTest.php +++ b/dev/tests/api-functional/testsuite/Magento/Catalog/Api/ProductAttributeRepositoryTest.php @@ -142,8 +142,9 @@ public function testUpdate() 'attribute' => [ 'attribute_id' => $attribute['attribute_id'], 'attribute_code' => $attributeCode, + 'default_frontend_label' => 'default_label_new', 'frontend_labels' => [ - ['store_id' => 0, 'label' => 'front_lbl_new'], + ['store_id' => 1, 'label' => 'front_lbl_new'], ], "options" => [ //Update existing @@ -183,7 +184,7 @@ public function testUpdate() $this->assertEquals($attribute['attribute_id'], $result['attribute_id']); $this->assertEquals($attributeCode, $result['attribute_code']); - $this->assertEquals('front_lbl_new', $result['default_frontend_label']); + $this->assertEquals('default_label_new', $result['default_frontend_label']); //New option set as default $this->assertEquals($result['options'][3]['value'], $result['default_value']); $this->assertEquals("Default Blue Updated", $result['options'][1]['label']);