Skip to content

Commit ee995f2

Browse files
author
cspruiell
committed
MAGETWO-58348: Cannot create configurable product with child by REST API
- code cleanup
1 parent b65f722 commit ee995f2

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

app/code/Magento/Catalog/Model/Product.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2616,6 +2616,7 @@ private function getMediaGalleryProcessor()
26162616

26172617
/**
26182618
* Set the associated products
2619+
*
26192620
* @param array $productIds
26202621
* @return $this
26212622
*/

app/code/Magento/ConfigurableProduct/i18n/en_US.csv

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ Done,Done
117117
"Please select attribute(s).","Please select attribute(s)."
118118
"Generate Products","Generate Products"
119119
"Configurable Product Image","Configurable Product Image"
120-
"Parent product does not have configurable product options","Parent product does not have configurable product options"
121-
"Child product does not have attribute value %1","Child product does not have attribute value %1"
122120
Select...,Select...
123121
Status,Status
124122
ID,ID

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ public function testAddChild()
7474
}
7575

7676
/**
77-
* Test case to cover bug MAGETWO-58401
77+
* Test the full flow of creating a configurable product and adding a child via REST
78+
*
7879
* @magentoApiDataFixture Magento/ConfigurableProduct/_files/configurable_attribute.php
7980
*/
8081
public function testAddChildFullRestCreation()

dev/tests/integration/testsuite/Magento/ConfigurableProduct/_files/product_simple_77.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22
/**
3+
* Creates a simple product to be used for test cases.
4+
*
35
* Copyright © 2016 Magento. All rights reserved.
46
* See COPYING.txt for license details.
57
*/

0 commit comments

Comments
 (0)