Skip to content

Commit d7c0d5c

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

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ class UpdateHandlerTest extends \PHPUnit\Framework\TestCase
7373
* @var string
7474
*/
7575
private $fileName;
76+
77+
/**
78+
* @var int
79+
*/
7680
private $mediaAttributeId;
7781

7882
/**
@@ -87,7 +91,7 @@ protected function setUp()
8791
$this->storeRepository = $this->objectManager->create(StoreRepositoryInterface::class);
8892
$this->galleryResource = $this->objectManager->create(Gallery::class);
8993
$this->productResource = $this->objectManager->create(ProductResource::class);
90-
$this->mediaAttributeId = $this->productResource->getAttribute('media_gallery')->getAttributeId();
94+
$this->mediaAttributeId = (int)$this->productResource->getAttribute('media_gallery')->getAttributeId();
9195
$this->config = $this->objectManager->get(Config::class);
9296
$this->mediaDirectory = $this->objectManager->get(Filesystem::class)
9397
->getDirectoryWrite(DirectoryList::MEDIA);

0 commit comments

Comments
 (0)