Skip to content

Commit 23ca4b9

Browse files
committed
Resolving deprecation issues
1 parent c8469cf commit 23ca4b9

File tree

5 files changed

+91
-91
lines changed

5 files changed

+91
-91
lines changed

dev/tests/integration/testsuite/Magento/Bundle/Model/Product/FixedBundlePriceCalculatorTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public static function getTestCases()
9999
{
100100
return [
101101
'#1 Testing price for fixed bundle product with one simple' => [
102-
'strategy' => self::getProductWithOneSimple(),
102+
'strategyModifiers' => self::getProductWithOneSimple(),
103103
'expectedResults' => [
104104
// 110 + 10 (price from simple1)
105105
'minimalPrice' => 120,
@@ -109,7 +109,7 @@ public static function getTestCases()
109109
],
110110

111111
'#2 Testing price for fixed bundle product with three simples and different qty' => [
112-
'strategy' => self::getProductWithDifferentQty(),
112+
'strategyModifiers' => self::getProductWithDifferentQty(),
113113
'expectedResults' => [
114114
// 110 + 10 (min price from simples)
115115
'minimalPrice' => 120,
@@ -119,7 +119,7 @@ public static function getTestCases()
119119
],
120120

121121
'#3 Testing price for fixed bundle product with three simples and different price' => [
122-
'strategy' => self::getProductWithDifferentPrice(),
122+
'strategyModifiers' => self::getProductWithDifferentPrice(),
123123
'expectedResults' => [
124124
// 110 + 10
125125
'minimalPrice' => 120,
@@ -129,7 +129,7 @@ public static function getTestCases()
129129
],
130130

131131
'#4 Testing price for fixed bundle product with three simples' => [
132-
'strategy' => self::getProductWithSamePrice(),
132+
'strategyModifiers' => self::getProductWithSamePrice(),
133133
'expectedResults' => [
134134
// 110 + 10
135135
'minimalPrice' => 120,
@@ -142,7 +142,7 @@ public static function getTestCases()
142142
#5 Testing price for fixed bundle product
143143
with fixed sub items, fixed options and without any discounts
144144
' => [
145-
'strategy' => self::getBundleConfiguration3(
145+
'strategyModifiers' => self::getBundleConfiguration3(
146146
LinkInterface::PRICE_TYPE_FIXED,
147147
self::CUSTOM_OPTION_PRICE_TYPE_FIXED
148148
),
@@ -159,7 +159,7 @@ public static function getTestCases()
159159
#6 Testing price for fixed bundle product
160160
with percent sub items, percent options and without any discounts
161161
' => [
162-
'strategy' => self::getBundleConfiguration3(
162+
'strategyModifiers' => self::getBundleConfiguration3(
163163
LinkInterface::PRICE_TYPE_PERCENT,
164164
self::CUSTOM_OPTION_PRICE_TYPE_PERCENT
165165
),
@@ -176,7 +176,7 @@ public static function getTestCases()
176176
#7 Testing price for fixed bundle product
177177
with fixed sub items, percent options and without any discounts
178178
' => [
179-
'strategy' => self::getBundleConfiguration3(
179+
'strategyModifiers' => self::getBundleConfiguration3(
180180
LinkInterface::PRICE_TYPE_FIXED,
181181
self::CUSTOM_OPTION_PRICE_TYPE_PERCENT
182182
),
@@ -193,7 +193,7 @@ public static function getTestCases()
193193
#8 Testing price for fixed bundle product
194194
with percent sub items, fixed options and without any discounts
195195
' => [
196-
'strategy' => self::getBundleConfiguration3(
196+
'strategyModifiers' => self::getBundleConfiguration3(
197197
LinkInterface::PRICE_TYPE_PERCENT,
198198
self::CUSTOM_OPTION_PRICE_TYPE_FIXED
199199
),

dev/tests/integration/testsuite/Magento/Bundle/Model/Product/FixedBundlePriceCalculatorWithDimensionTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public static function getTestCases()
102102
{
103103
return [
104104
'#1 Testing price for fixed bundle product with one simple' => [
105-
'strategy' => self::getProductWithOneSimple(),
105+
'strategyModifiers' => self::getProductWithOneSimple(),
106106
'expectedResults' => [
107107
// 110 + 10 (price from simple1)
108108
'minimalPrice' => 120,
@@ -112,7 +112,7 @@ public static function getTestCases()
112112
],
113113

114114
'#2 Testing price for fixed bundle product with three simples and different qty' => [
115-
'strategy' => self::getProductWithDifferentQty(),
115+
'strategyModifiers' => self::getProductWithDifferentQty(),
116116
'expectedResults' => [
117117
// 110 + 10 (min price from simples)
118118
'minimalPrice' => 120,
@@ -122,7 +122,7 @@ public static function getTestCases()
122122
],
123123

124124
'#3 Testing price for fixed bundle product with three simples and different price' => [
125-
'strategy' => self::getProductWithDifferentPrice(),
125+
'strategyModifiers' => self::getProductWithDifferentPrice(),
126126
'expectedResults' => [
127127
// 110 + 10
128128
'minimalPrice' => 120,
@@ -132,7 +132,7 @@ public static function getTestCases()
132132
],
133133

134134
'#4 Testing price for fixed bundle product with three simples' => [
135-
'strategy' => self::getProductWithSamePrice(),
135+
'strategyModifiers' => self::getProductWithSamePrice(),
136136
'expectedResults' => [
137137
// 110 + 10
138138
'minimalPrice' => 120,
@@ -145,7 +145,7 @@ public static function getTestCases()
145145
#5 Testing price for fixed bundle product
146146
with fixed sub items, fixed options and without any discounts
147147
' => [
148-
'strategy' => self::getBundleConfiguration3(
148+
'strategyModifiers' => self::getBundleConfiguration3(
149149
LinkInterface::PRICE_TYPE_FIXED,
150150
self::CUSTOM_OPTION_PRICE_TYPE_FIXED
151151
),
@@ -162,7 +162,7 @@ public static function getTestCases()
162162
#6 Testing price for fixed bundle product
163163
with percent sub items, percent options and without any discounts
164164
' => [
165-
'strategy' => self::getBundleConfiguration3(
165+
'strategyModifiers' => self::getBundleConfiguration3(
166166
LinkInterface::PRICE_TYPE_PERCENT,
167167
self::CUSTOM_OPTION_PRICE_TYPE_PERCENT
168168
),
@@ -179,7 +179,7 @@ public static function getTestCases()
179179
#7 Testing price for fixed bundle product
180180
with fixed sub items, percent options and without any discounts
181181
' => [
182-
'strategy' => self::getBundleConfiguration3(
182+
'strategyModifiers' => self::getBundleConfiguration3(
183183
LinkInterface::PRICE_TYPE_FIXED,
184184
self::CUSTOM_OPTION_PRICE_TYPE_PERCENT
185185
),
@@ -196,7 +196,7 @@ public static function getTestCases()
196196
#8 Testing price for fixed bundle product
197197
with percent sub items, fixed options and without any discounts
198198
' => [
199-
'strategy' => self::getBundleConfiguration3(
199+
'strategyModifiers' => self::getBundleConfiguration3(
200200
LinkInterface::PRICE_TYPE_PERCENT,
201201
self::CUSTOM_OPTION_PRICE_TYPE_FIXED
202202
),

dev/tests/integration/testsuite/Magento/Bundle/Model/Product/FixedBundleWithCatalogPriceRuleCalculatorTest.php

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static function getTestCases()
5656
#1 Testing price for fixed bundle product
5757
with catalog price rule and without sub items and options
5858
' => [
59-
'strategy' => self::getBundleConfiguration1(),
59+
'strategyModifiers' => self::getBundleConfiguration1(),
6060
'expectedResults' => [
6161
// 110 * 0.9
6262
'minimalPrice' => 99,
@@ -70,7 +70,7 @@ public static function getTestCases()
7070
#2 Testing price for fixed bundle product
7171
with catalog price rule, fixed sub items and fixed options
7272
' => [
73-
'strategy' => self::getBundleConfiguration2(
73+
'strategyModifiers' => self::getBundleConfiguration2(
7474
LinkInterface::PRICE_TYPE_FIXED,
7575
self::CUSTOM_OPTION_PRICE_TYPE_FIXED
7676
),
@@ -87,7 +87,7 @@ public static function getTestCases()
8787
#3 Testing price for fixed bundle product
8888
with catalog price rule, percent sub items and percent options
8989
' => [
90-
'strategy' => self::getBundleConfiguration2(
90+
'strategyModifiers' => self::getBundleConfiguration2(
9191
LinkInterface::PRICE_TYPE_PERCENT,
9292
self::CUSTOM_OPTION_PRICE_TYPE_PERCENT
9393
),
@@ -104,7 +104,7 @@ public static function getTestCases()
104104
#4 Testing price for fixed bundle product
105105
with catalog price rule, fixed sub items and percent options
106106
' => [
107-
'strategy' => self::getBundleConfiguration2(
107+
'strategyModifiers' => self::getBundleConfiguration2(
108108
LinkInterface::PRICE_TYPE_FIXED,
109109
self::CUSTOM_OPTION_PRICE_TYPE_PERCENT
110110
),
@@ -121,7 +121,7 @@ public static function getTestCases()
121121
#5 Testing price for fixed bundle product
122122
with catalog price rule, percent sub items and fixed options
123123
' => [
124-
'strategy' => self::getBundleConfiguration2(
124+
'strategyModifiers' => self::getBundleConfiguration2(
125125
LinkInterface::PRICE_TYPE_PERCENT,
126126
self::CUSTOM_OPTION_PRICE_TYPE_FIXED
127127
),
@@ -138,7 +138,7 @@ public static function getTestCases()
138138
#6 Testing price for fixed bundle product
139139
with catalog price rule, fixed sub items and fixed options
140140
' => [
141-
'strategy' => self::getBundleConfiguration3(
141+
'strategyModifiers' => self::getBundleConfiguration3(
142142
LinkInterface::PRICE_TYPE_FIXED,
143143
self::CUSTOM_OPTION_PRICE_TYPE_FIXED
144144
),
@@ -155,7 +155,7 @@ public static function getTestCases()
155155
#7 Testing price for fixed bundle product
156156
with catalog price rule, percent sub items and percent options
157157
' => [
158-
'strategy' => self::getBundleConfiguration3(
158+
'strategyModifiers' => self::getBundleConfiguration3(
159159
LinkInterface::PRICE_TYPE_PERCENT,
160160
self::CUSTOM_OPTION_PRICE_TYPE_PERCENT
161161
),
@@ -172,7 +172,7 @@ public static function getTestCases()
172172
#8 Testing price for fixed bundle product
173173
with catalog price rule, fixed sub items and percent options
174174
' => [
175-
'strategy' => self::getBundleConfiguration3(
175+
'strategyModifiers' => self::getBundleConfiguration3(
176176
LinkInterface::PRICE_TYPE_FIXED,
177177
self::CUSTOM_OPTION_PRICE_TYPE_PERCENT
178178
),
@@ -189,7 +189,7 @@ public static function getTestCases()
189189
#9 Testing price for fixed bundle product
190190
with catalog price rule, percent sub items and fixed options
191191
' => [
192-
'strategy' => self::getBundleConfiguration3(
192+
'strategyModifiers' => self::getBundleConfiguration3(
193193
LinkInterface::PRICE_TYPE_PERCENT,
194194
self::CUSTOM_OPTION_PRICE_TYPE_FIXED
195195
),
@@ -206,7 +206,7 @@ public static function getTestCases()
206206
#10 Testing price for fixed bundle product
207207
with catalog price rule, fixed sub items and fixed options
208208
' => [
209-
'strategy' => self::getBundleConfiguration4(
209+
'strategyModifiers' => self::getBundleConfiguration4(
210210
LinkInterface::PRICE_TYPE_FIXED,
211211
self::CUSTOM_OPTION_PRICE_TYPE_FIXED
212212
),
@@ -223,7 +223,7 @@ public static function getTestCases()
223223
#11 Testing price for fixed bundle product
224224
with catalog price rule, percent sub items and percent options
225225
' => [
226-
'strategy' => self::getBundleConfiguration4(
226+
'strategyModifiers' => self::getBundleConfiguration4(
227227
LinkInterface::PRICE_TYPE_PERCENT,
228228
self::CUSTOM_OPTION_PRICE_TYPE_PERCENT
229229
),
@@ -240,7 +240,7 @@ public static function getTestCases()
240240
#12 Testing price for fixed bundle product
241241
with catalog price rule, fixed sub items and percent options
242242
' => [
243-
'strategy' => self::getBundleConfiguration4(
243+
'strategyModifiers' => self::getBundleConfiguration4(
244244
LinkInterface::PRICE_TYPE_FIXED,
245245
self::CUSTOM_OPTION_PRICE_TYPE_PERCENT
246246
),
@@ -257,7 +257,7 @@ public static function getTestCases()
257257
#13 Testing price for fixed bundle product
258258
with catalog price rule, percent sub items and fixed options
259259
' => [
260-
'strategy' => self::getBundleConfiguration4(
260+
'strategyModifiers' => self::getBundleConfiguration4(
261261
LinkInterface::PRICE_TYPE_PERCENT,
262262
self::CUSTOM_OPTION_PRICE_TYPE_FIXED
263263
),
@@ -274,7 +274,7 @@ public static function getTestCases()
274274
#14 Testing price for fixed bundle product
275275
with catalog price rule, fixed sub items and fixed options
276276
' => [
277-
'strategy' => self::getBundleConfiguration5(
277+
'strategyModifiers' => self::getBundleConfiguration5(
278278
LinkInterface::PRICE_TYPE_FIXED,
279279
self::CUSTOM_OPTION_PRICE_TYPE_FIXED
280280
),
@@ -291,7 +291,7 @@ public static function getTestCases()
291291
#15 Testing price for fixed bundle product
292292
with catalog price rule, percent sub items and percent options
293293
' => [
294-
'strategy' => self::getBundleConfiguration5(
294+
'strategyModifiers' => self::getBundleConfiguration5(
295295
LinkInterface::PRICE_TYPE_PERCENT,
296296
self::CUSTOM_OPTION_PRICE_TYPE_PERCENT
297297
),
@@ -308,7 +308,7 @@ public static function getTestCases()
308308
#16 Testing price for fixed bundle product
309309
with catalog price rule, fixed sub items and percent options
310310
' => [
311-
'strategy' => self::getBundleConfiguration5(
311+
'strategyModifiers' => self::getBundleConfiguration5(
312312
LinkInterface::PRICE_TYPE_FIXED,
313313
self::CUSTOM_OPTION_PRICE_TYPE_PERCENT
314314
),
@@ -325,7 +325,7 @@ public static function getTestCases()
325325
#17 Testing price for fixed bundle product
326326
with catalog price rule, percent sub items and fixed options
327327
' => [
328-
'strategy' => self::getBundleConfiguration5(
328+
'strategyModifiers' => self::getBundleConfiguration5(
329329
LinkInterface::PRICE_TYPE_PERCENT,
330330
self::CUSTOM_OPTION_PRICE_TYPE_FIXED
331331
),
@@ -342,7 +342,7 @@ public static function getTestCases()
342342
#18 Testing price for fixed bundle product
343343
with catalog price rule, fixed sub items and fixed options
344344
' => [
345-
'strategy' => self::getBundleConfiguration6(
345+
'strategyModifiers' => self::getBundleConfiguration6(
346346
LinkInterface::PRICE_TYPE_FIXED,
347347
self::CUSTOM_OPTION_PRICE_TYPE_FIXED
348348
),
@@ -359,7 +359,7 @@ public static function getTestCases()
359359
#19 Testing price for fixed bundle product
360360
with catalog price rule, percent sub items and percent options
361361
' => [
362-
'strategy' => self::getBundleConfiguration6(
362+
'strategyModifiers' => self::getBundleConfiguration6(
363363
LinkInterface::PRICE_TYPE_PERCENT,
364364
self::CUSTOM_OPTION_PRICE_TYPE_PERCENT
365365
),
@@ -376,7 +376,7 @@ public static function getTestCases()
376376
#20 Testing price for fixed bundle product
377377
with catalog price rule, fixed sub items and percent options
378378
' => [
379-
'strategy' => self::getBundleConfiguration6(
379+
'strategyModifiers' => self::getBundleConfiguration6(
380380
LinkInterface::PRICE_TYPE_FIXED,
381381
self::CUSTOM_OPTION_PRICE_TYPE_PERCENT
382382
),
@@ -393,7 +393,7 @@ public static function getTestCases()
393393
#21 Testing price for fixed bundle product
394394
with catalog price rule, percent sub items and fixed options
395395
' => [
396-
'strategy' => self::getBundleConfiguration6(
396+
'strategyModifiers' => self::getBundleConfiguration6(
397397
LinkInterface::PRICE_TYPE_PERCENT,
398398
self::CUSTOM_OPTION_PRICE_TYPE_FIXED
399399
),
@@ -410,7 +410,7 @@ public static function getTestCases()
410410
#22 Testing price for fixed bundle product
411411
with catalog price rule, fixed sub items and fixed options
412412
' => [
413-
'strategy' => self::getBundleConfiguration7(
413+
'strategyModifiers' => self::getBundleConfiguration7(
414414
LinkInterface::PRICE_TYPE_FIXED,
415415
self::CUSTOM_OPTION_PRICE_TYPE_FIXED
416416
),
@@ -427,7 +427,7 @@ public static function getTestCases()
427427
#23 Testing price for fixed bundle product
428428
with catalog price rule, percent sub items and percent options
429429
' => [
430-
'strategy' => self::getBundleConfiguration7(
430+
'strategyModifiers' => self::getBundleConfiguration7(
431431
LinkInterface::PRICE_TYPE_PERCENT,
432432
self::CUSTOM_OPTION_PRICE_TYPE_PERCENT
433433
),
@@ -444,7 +444,7 @@ public static function getTestCases()
444444
#24 Testing price for fixed bundle product
445445
with catalog price rule, fixed sub items and percent options
446446
' => [
447-
'strategy' => self::getBundleConfiguration7(
447+
'strategyModifiers' => self::getBundleConfiguration7(
448448
LinkInterface::PRICE_TYPE_FIXED,
449449
self::CUSTOM_OPTION_PRICE_TYPE_PERCENT
450450
),
@@ -461,7 +461,7 @@ public static function getTestCases()
461461
#25 Testing price for fixed bundle product
462462
with catalog price rule, percent sub items and fixed options
463463
' => [
464-
'strategy' => self::getBundleConfiguration7(
464+
'strategyModifiers' => self::getBundleConfiguration7(
465465
LinkInterface::PRICE_TYPE_PERCENT,
466466
self::CUSTOM_OPTION_PRICE_TYPE_FIXED
467467
),

0 commit comments

Comments
 (0)