File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
dev/tests/integration/testsuite/Magento/AdvancedPricingImportExport/_files Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 38
38
39
39
$ productRepository ->save ($ productModel );
40
40
41
- $ productModel ->setName ('AdvancedPricingSimple 2 ' )
42
- ->setId (null )
43
- ->setUrlKey ('' )
41
+ $ productModel = $ objectManager ->create (Product::class);
42
+ $ productModel ->setTypeId (Type::TYPE_SIMPLE )
43
+ ->setAttributeSetId (4 )
44
+ ->setName ('AdvancedPricingSimple 2 ' )
44
45
->setSku ('AdvancedPricingSimple 2 ' )
45
46
->setPrice (654 )
47
+ ->setVisibility (Visibility::VISIBILITY_BOTH )
48
+ ->setStatus (Status::STATUS_ENABLED )
49
+ ->setWebsiteIds ([1 ])
50
+ ->setCategoryIds ([])
51
+ ->setStockData (['qty ' => 100 , 'is_in_stock ' => 1 , 'manage_stock ' => 1 ])
46
52
->setIsObjectNew (true );
47
-
48
53
$ productRepository ->save ($ productModel );
You can’t perform that action at this time.
0 commit comments