Skip to content

Commit 9157861

Browse files
committed
MAGETWO-56206: API - inconsistency in the Magento response data types
- Remove the optional extension_attributes parameter from functional api tests
1 parent c217968 commit 9157861

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,7 @@ public function testProductLinks()
344344
"link_type" => "related",
345345
"linked_product_sku" => "product_simple_500",
346346
"linked_product_type" => "simple",
347-
"position" => 0,
348-
"extension_attributes" => []
347+
"position" => 0
349348
];
350349
$productWithRelatedData = [
351350
ProductInterface::SKU => "product_simple_with_related_500",
@@ -373,8 +372,7 @@ public function testProductLinks()
373372
"link_type" => "upsell",
374373
"linked_product_sku" => "product_simple_500",
375374
"linked_product_type" => "simple",
376-
"position" => 0,
377-
"extension_attributes" => []
375+
"position" => 0
378376
];
379377
$productWithUpsellData = [
380378
ProductInterface::SKU => "product_simple_with_related_500",

dev/tests/api-functional/testsuite/Magento/ConfigurableProduct/Api/ConfigurableProductManagementTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ public function testGetVariation()
6969
'value' => $attributeOptionValue
7070
]
7171
],
72-
'tier_prices' => [],
73-
'extension_attributes' => []
72+
'tier_prices' => []
7473
]
7574
];
7675
ksort($expectedItems);

dev/tests/api-functional/testsuite/Magento/GroupedProduct/Api/ProductRepositoryInterfaceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function testProductLinks()
162162
"position" => 0, "extension_attributes" => ["qty" => 4]];
163163
$productLinkData2 = ["sku" => "group_product_500", "link_type" => "upsell",
164164
"linked_product_sku" => "product_simple_500", "linked_product_type" => "simple",
165-
"position" => 0, "extension_attributes" => []];
165+
"position" => 0];
166166
$productWithGroupData = [
167167
ProductInterface::SKU => "group_product_500",
168168
ProductInterface::NAME => "Group Product 500",

0 commit comments

Comments
 (0)