Skip to content

Commit eaea997

Browse files
committed
MAGETWO-57753: [GitHub] Product attribute creation fails with REST API #6213
1 parent 680fb1f commit eaea997

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ public function testCreate()
9191
$expectedData = [
9292
'attribute_code' => $attributeCode,
9393
'is_required' => true,
94+
'entity_type_id' => "4",
9495
"frontend_input" => "select",
9596
"is_visible_on_front" => true,
9697
"is_searchable" => true,
@@ -205,6 +206,7 @@ public function testUpdateWithNewOption()
205206
'attribute' => [
206207
'attribute_id' => $attribute['attribute_id'],
207208
'attribute_code' => $attributeCode,
209+
'entity_type_id' => 4,
208210
'is_required' => true,
209211
'frontend_labels' => [
210212
['store_id' => 0, 'label' => 'front_lbl_new'],
@@ -281,6 +283,7 @@ protected function createAttribute($attributeCode)
281283
$attributeData = [
282284
'attribute' => [
283285
'attribute_code' => $attributeCode,
286+
'entity_type_id' => '4',
284287
'frontend_labels' => [
285288
[
286289
'store_id' => 0,

0 commit comments

Comments
 (0)