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