Skip to content

Commit e4c227d

Browse files
committed
MC-37070: Create automated test for "Import products with shared images"
1 parent 3ffc2e8 commit e4c227d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,15 @@ class UpdateHandlerTest extends \PHPUnit\Framework\TestCase
8686
* @var StoreManagerInterface
8787
*/
8888
private $storeManager;
89+
8990
/**
9091
* @var int
9192
*/
9293
private $currentStoreId;
9394

94-
/** @var MetadataPool */
95+
/**
96+
* @var MetadataPool
97+
*/
9598
private $metadataPool;
9699

97100
/**

dev/tests/integration/testsuite/Magento/CatalogImportExport/Model/Import/ImportWithSharedImagesTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Magento\Catalog\Api\ProductRepositoryInterface;
1111
use Magento\Catalog\Model\Product as ProductEntity;
1212
use Magento\Catalog\Model\Product\Media\ConfigInterface;
13+
use Magento\Framework\App\Bootstrap as AppBootstrap;
1314
use Magento\Framework\App\Filesystem\DirectoryList;
1415
use Magento\Framework\Exception\NoSuchEntityException;
1516
use Magento\Framework\Filesystem;
@@ -82,7 +83,7 @@ protected function setUp(): void
8283
$this->csvFactory = $this->objectManager->get(CsvFactory::class);
8384
$this->importDataResource = $this->objectManager->get(Data::class);
8485
$this->appParams = Bootstrap::getInstance()->getBootstrap()->getApplication()
85-
->getInitParams()[\Magento\Framework\App\Bootstrap::INIT_PARAM_FILESYSTEM_DIR_PATHS];
86+
->getInitParams()[AppBootstrap::INIT_PARAM_FILESYSTEM_DIR_PATHS];
8687
}
8788

8889
/**

0 commit comments

Comments
 (0)