Skip to content

Commit

Permalink
MAGETWO-58609: default_frontend_label is Ignored during Attribute Upd…
Browse files Browse the repository at this point in the history
…ate via API

- Added API test;
  • Loading branch information
aakimov committed Sep 22, 2016
1 parent d3853ae commit 421ded5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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']);
Expand Down

0 comments on commit 421ded5

Please sign in to comment.