File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
dev/tests/integration/testsuite/Magento/Catalog/_files Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11
11
use Magento \Catalog \Model \Product \Attribute \Source \Status ;
12
12
use Magento \Catalog \Model \Product \Visibility ;
13
13
use Magento \Catalog \Model \ProductFactory ;
14
+ use Magento \Store \Model \Store ;
14
15
use Magento \TestFramework \Eav \Model \GetAttributeSetByName ;
15
16
use Magento \TestFramework \Helper \Bootstrap ;
16
- use Magento \Store \Model \StoreManagerInterface ;
17
17
18
18
$ objectManager = Bootstrap::getObjectManager ();
19
- /** @var StoreManagerInterface $storeManager */
20
- $ storeManager = $ objectManager ->get (StoreManagerInterface::class);
21
19
/** @var ProductRepositoryInterface $productRepository */
22
20
$ productRepository = $ objectManager ->get (ProductRepositoryInterface::class);
23
21
/** @var ProductFactory $productFactory */
30
28
->setTypeId ('simple ' )
31
29
->setAttributeSetId ($ customAttributeSet ->getAttributeSetId ())
32
30
->setWebsiteIds ([1 ])
33
- ->setStoreId ($ storeManager -> getStore ( ' admin ' )-> getId () )
31
+ ->setStoreId (Store:: DEFAULT_STORE_ID )
34
32
->setName ('Simple Product ' )
35
33
->setSku ('simple ' )
36
34
->setPrice (10 )
Original file line number Diff line number Diff line change 29
29
$ stockRegistryStorage ->clean ();
30
30
$ registry ->unregister ('isSecureArea ' );
31
31
$ registry ->register ('isSecureArea ' , false );
32
+
33
+ require __DIR__ . '/attribute_set_based_on_default_with_custom_group_rollback.php ' ;
You can’t perform that action at this time.
0 commit comments