Skip to content

Commit 2c469a1

Browse files
MAGETWO-97311: creating attribute option value using API returns unexpected response
- Add webapi check for id value.
1 parent f92c630 commit 2c469a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dev/tests/api-functional/testsuite/Magento/Catalog/Api/ProductSwatchAttributeOptionManagementInterfaceTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ public function testAdd($optionData)
4545
$this->assertNotNull($response);
4646
$updatedData = $this->getAttributeOptions($testAttributeCode);
4747
$lastOption = array_pop($updatedData);
48+
foreach ($updatedData as $option) {
49+
$this->assertNotContains('id', $option['value']);
50+
}
4851
$this->assertEquals(
4952
$optionData[AttributeOptionInterface::STORE_LABELS][0][AttributeOptionLabelInterface::LABEL],
5053
$lastOption['label']

0 commit comments

Comments
 (0)