Skip to content

Commit a0a025c

Browse files
MC-20660: Admin: Assign/delete image(s) from simple product in single/multiple store views mode
1 parent d7f72fb commit a0a025c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Model/Product/Gallery/UpdateHandlerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,12 +269,13 @@ public function testExecuteWithTwoImagesAndChangedPosition(): void
269269
public function testExecuteWithImageToDelete(): void
270270
{
271271
$product = $this->getProduct();
272+
$image = $product->getImage();
272273
$this->updateProductGalleryImages($product, ['removed' => '1']);
273274
$this->updateHandler->execute($product);
274275
$productImages = $this->galleryResource->loadProductGalleryByAttributeId($product, $this->mediaAttributeId);
275276
$this->assertCount(0, $productImages);
276277
$this->assertFileNotExists(
277-
$this->mediaDirectory->getAbsolutePath($this->config->getBaseMediaPath() . '/m/a/magento_image.jpg')
278+
$this->mediaDirectory->getAbsolutePath($this->config->getBaseMediaPath() . $image)
278279
);
279280
$defaultImages = $this->productResource->getAttributeRawValue(
280281
$product->getId(),

0 commit comments

Comments
 (0)