Skip to content

Commit 01eca72

Browse files
author
Stanislav Idolov
committed
MAGETWO-59626: Error saving configurable product after disabling child products
1 parent fd53a97 commit 01eca72

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/Section/BlockGallery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class BlockGallery extends Section
2323
public function setFieldsData(array $data, SimpleElement $element = null)
2424
{
2525
if (isset($data['image'])) {
26-
foreach ($data['image']['value'] as $key => $imageData) {
26+
foreach ($data['image']['value'] as $imageData) {
2727
$uploadElement = $this->_rootElement->find('[name="image"]', Locator::SELECTOR_CSS, 'upload');
2828
$uploadElement->setValue($imageData['file']);
2929
$this->waitForElementNotVisible('.image.image-placeholder .file-row');

dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCanUpdate.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class AssertProductCanUpdate extends \Magento\Mtf\Constraint\AbstractConstraint
1717
* @param \Magento\Mtf\Fixture\FixtureInterface $product
1818
* @param \Magento\Catalog\Test\Page\Adminhtml\CatalogProductEdit $catalogProductEdit
1919
* @param \Magento\Catalog\Test\Page\Adminhtml\CatalogProductIndex $catalogProductIndex
20+
* @return void
2021
*/
2122
public function processAssert(
2223
\Magento\Mtf\Fixture\FixtureInterface $product,

dev/tests/functional/tests/app/Magento/Catalog/Test/Fixture/Product/Image.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class Image extends DataSource
1919
* @param FixtureFactory $fixtureFactory
2020
* @param array $params
2121
* @param array $data
22+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
2223
*/
2324
public function __construct(FixtureFactory $fixtureFactory, array $params, $data = [])
2425
{

dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/CreateSimpleProductEntityTest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,14 +501,15 @@
501501
<constraint name="Magento\Catalog\Test\Constraint\AssertProductInCart" />
502502
</variation>
503503
<variation name="CreateSimpleProductEntityWithImageTestVariation1">
504-
<data name="description" xsi:type="string">Create product with image</data>
504+
<data name="description" xsi:type="string">Create product with image and try to save it again</data>
505505
<data name="product/data/image/0/file" xsi:type="string">Magento/Catalog/Test/_files/test1.png</data>
506506
<data name="product/data/image/1/file" xsi:type="string">Magento/Catalog/Test/_files/test2.png</data>
507507
<data name="product/data/url_key" xsi:type="string">simple-product-%isolation%</data>
508508
<data name="product/data/name" xsi:type="string">Simple Product %isolation%</data>
509509
<data name="product/data/sku" xsi:type="string">simple_sku_%isolation%</data>
510510
<data name="product/data/price/value" xsi:type="string">10</data>
511511
<data name="product/data/weight" xsi:type="string">50</data>
512+
<data name="tag" xsi:type="string">severity:S1</data>
512513
<data name="product/data/quantity_and_stock_status/qty" xsi:type="string">100</data>
513514
<constraint name="Magento\Catalog\Test\Constraint\AssertProductSaveMessage" />
514515
<constraint name="Magento\Catalog\Test\Constraint\AssertProductCanUpdate" />

0 commit comments

Comments
 (0)