|
12 | 12 | use Magento\Catalog\Model\Product\Media\ConfigInterface;
|
13 | 13 | use Magento\Catalog\Model\ResourceModel\Product as ProductResource;
|
14 | 14 | use Magento\Framework\Api\SearchCriteriaBuilder;
|
15 |
| -use Magento\Framework\App\Config\ReinitableConfigInterface; |
16 |
| -use Magento\Framework\App\Config\Value; |
17 | 15 | use Magento\Framework\App\Filesystem\DirectoryList;
|
18 | 16 | use Magento\Framework\Exception\CouldNotSaveException;
|
19 | 17 | use Magento\Framework\Exception\InputException;
|
|
23 | 21 | use Magento\Framework\Filesystem;
|
24 | 22 | use Magento\Framework\Filesystem\Directory\WriteInterface;
|
25 | 23 | use Magento\Framework\ObjectManagerInterface;
|
26 |
| -use Magento\Store\Model\ScopeInterface; |
27 |
| -use Magento\Store\Model\Store; |
28 | 24 | use Magento\Store\Model\StoreManagerInterface;
|
29 | 25 | use Magento\TestFramework\Catalog\Model\ProductLayoutUpdateManager;
|
| 26 | +use Magento\TestFramework\Fixture\DataFixtureStorage; |
30 | 27 | use Magento\TestFramework\Fixture\DataFixtureStorageManager;
|
31 | 28 | use Magento\TestFramework\Helper\Bootstrap;
|
32 | 29 | use PHPUnit\Framework\TestCase;
|
@@ -94,7 +91,7 @@ class ProductRepositoryTest extends TestCase
|
94 | 91 | private $productSkusToDelete = [];
|
95 | 92 |
|
96 | 93 | /**
|
97 |
| - * @var \Magento\TestFramework\Fixture\DataFixtureStorage |
| 94 | + * @var DataFixtureStorage |
98 | 95 | */
|
99 | 96 | private $fixtures;
|
100 | 97 |
|
@@ -437,11 +434,17 @@ private function getProductInstance(array $data = []): ProductInterface
|
437 | 434 | );
|
438 | 435 | }
|
439 | 436 |
|
| 437 | + /** |
| 438 | + * @return void |
| 439 | + */ |
440 | 440 | public static function setPriceScopeToWebsite(): void
|
441 | 441 | {
|
442 | 442 | self::setConfig(['catalog/price/scope' => 1]);
|
443 | 443 | }
|
444 | 444 |
|
| 445 | + /** |
| 446 | + * @return void |
| 447 | + */ |
445 | 448 | public static function setPriceScopeToWebsiteRollback(): void
|
446 | 449 | {
|
447 | 450 | self::setConfig(['catalog/price/scope' => null]);
|
|
0 commit comments