Skip to content

Commit 9767984

Browse files
committed
MAGETWO-56582: Cannot save a product with images for the second time
1 parent 9568f75 commit 9767984

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

app/code/Magento/Catalog/Test/Unit/Model/Product/Gallery/ReadHandlerTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ protected function setUp()
4242
);
4343
}
4444

45-
4645
public function testAddMediaDataToProduct()
4746
{
4847
$attribute = $this->getMockBuilder(\Magento\Eav\Model\Entity\Attribute::class)
@@ -56,7 +55,6 @@ public function testAddMediaDataToProduct()
5655
->with('media_gallery')
5756
->willReturn($attribute);
5857

59-
6058
$product = $this->getMockBuilder(\Magento\Catalog\Model\Product::class)
6159
->disableOriginalConstructor()
6260
->getMock();
@@ -71,5 +69,4 @@ public function testAddMediaDataToProduct()
7169
);
7270
$this->model->addMediaDataToProduct($product, [['value_id' => 10]]);
7371
}
74-
7572
}

0 commit comments

Comments
 (0)