Skip to content

Commit b40d857

Browse files
added assert to ensure that gallery data was existing
1 parent b2c47af commit b40d857

File tree

1 file changed

+2
-1
lines changed
  • dev/tests/integration/testsuite/Magento/Catalog/Model/ResourceModel/Product

1 file changed

+2
-1
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Model/ResourceModel/Product/GalleryTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,14 @@ protected function setUp(): void
6161
*
6262
* @return void
6363
*/
64-
public function testProductUpdate(): void
64+
public function testDeleteProductWithImage(): void
6565
{
6666
$product = $this->productRepository->get('simple');
6767

6868
$attributeId = $this->readHandler->getAttribute()->getAttributeId();
6969
$mediaGalleryData = $this->galleryResource->loadProductGalleryByAttributeId($product, $attributeId);
7070
$values = array_column($mediaGalleryData, 'value_id');
71+
$this->assertNotEmpty($this->getMediaGalleryDataByValues($values));
7172

7273
$this->productRepository->delete($product);
7374

0 commit comments

Comments
 (0)