File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
dev/tests/integration/testsuite/Magento/Catalog/_files Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 45
45
]
46
46
);
47
47
/** @var $tpExtensionAttributes */
48
- $ tpExtensionAttributesFactory = $ objectManager ->create (ProductTierPriceExtensionFactory::class);
49
- $ tpExtensionAttributes = $ tpExtensionAttributesFactory ->create ()->setPercentageValue (50 );
50
48
51
49
$ tierPrices [] = $ tierPriceFactory ->create (
52
50
[
55
53
'qty ' => 10
56
54
]
57
55
]
58
- )-> setExtensionAttributes ( $ tpExtensionAttributes ) ;
56
+ );
59
57
60
58
$ tierPrices = [];
61
59
/** @var \Magento\Catalog\Api\Data\ProductTierPriceInterfaceFactory $tierPriceFactory */
87
85
]
88
86
]
89
87
);
90
- /** @var $tpExtensionAttributes */
91
- $ tpExtensionAttributesFactory = $ objectManager ->create (ProductTierPriceExtensionFactory::class);
92
- $ tpExtensionAttributes = $ tpExtensionAttributesFactory ->create ()->setPercentageValue (50 );
93
-
94
88
$ tierPrices [] = $ tierPriceFactory ->create (
95
89
[
96
90
'data ' => [
97
91
'customer_group_id ' => \Magento \Customer \Model \Group::NOT_LOGGED_IN_ID ,
98
92
'qty ' => 10
99
93
]
100
94
]
101
- )-> setExtensionAttributes ( $ tpExtensionAttributes ) ;
95
+ );
102
96
103
97
/** @var $product \Magento\Catalog\Model\Product */
104
98
$ product = $ objectManager ->create (\Magento \Catalog \Model \Product::class);
You can’t perform that action at this time.
0 commit comments