File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
app/code/Magento/SalesRule/Model/Rule/Action/Discount
dev/tests/integration/testsuite/Magento/SalesRule/Model/Rule/Action/Discount Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,9 @@ public function __construct(
42
42
Validator $ validator ,
43
43
DataFactory $ discountDataFactory ,
44
44
PriceCurrencyInterface $ priceCurrency ,
45
- DeltaPriceRound $ deltaPriceRound = null
45
+ DeltaPriceRound $ deltaPriceRound
46
46
) {
47
- $ this ->deltaPriceRound = $ deltaPriceRound ?: ObjectManager:: getInstance ()-> get (DeltaPriceRound::class) ;
47
+ $ this ->deltaPriceRound = $ deltaPriceRound ;
48
48
49
49
parent ::__construct ($ validator , $ discountDataFactory , $ priceCurrency );
50
50
}
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ private function createProduct(float $price): ProductInterface
105
105
$ productRepository = Bootstrap::getObjectManager ()->get (ProductRepository::class);
106
106
$ product = Bootstrap::getObjectManager ()->create (Product::class);
107
107
$ product ->setTypeId ('simple ' )
108
- ->setAttributeSetId (4 )
108
+ ->setAttributeSetId ($ product -> getDefaultAttributeSetId () )
109
109
->setWebsiteIds ([1 ])
110
110
->setName ($ name )
111
111
->setSku (uniqid ($ name ))
You can’t perform that action at this time.
0 commit comments