Skip to content

Commit c1bd70e

Browse files
committed
MC-20691: Admin: Update attribute set
1 parent a7a72fd commit c1bd70e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dev/tests/integration/testsuite/Magento/Catalog/_files/product_with_test_attribute_set.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@
1111
use Magento\Catalog\Model\Product\Attribute\Source\Status;
1212
use Magento\Catalog\Model\Product\Visibility;
1313
use Magento\Catalog\Model\ProductFactory;
14+
use Magento\Store\Model\Store;
1415
use Magento\TestFramework\Eav\Model\GetAttributeSetByName;
1516
use Magento\TestFramework\Helper\Bootstrap;
16-
use Magento\Store\Model\StoreManagerInterface;
1717

1818
$objectManager = Bootstrap::getObjectManager();
19-
/** @var StoreManagerInterface $storeManager */
20-
$storeManager = $objectManager->get(StoreManagerInterface::class);
2119
/** @var ProductRepositoryInterface $productRepository */
2220
$productRepository = $objectManager->get(ProductRepositoryInterface::class);
2321
/** @var ProductFactory $productFactory */
@@ -30,7 +28,7 @@
3028
->setTypeId('simple')
3129
->setAttributeSetId($customAttributeSet->getAttributeSetId())
3230
->setWebsiteIds([1])
33-
->setStoreId($storeManager->getStore('admin')->getId())
31+
->setStoreId(Store::DEFAULT_STORE_ID)
3432
->setName('Simple Product')
3533
->setSku('simple')
3634
->setPrice(10)

dev/tests/integration/testsuite/Magento/Catalog/_files/product_with_test_attribute_set_rollback.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@
2929
$stockRegistryStorage->clean();
3030
$registry->unregister('isSecureArea');
3131
$registry->register('isSecureArea', false);
32+
33+
require __DIR__ . '/attribute_set_based_on_default_with_custom_group_rollback.php';

0 commit comments

Comments
 (0)