Skip to content

Commit 88ea963

Browse files
#12584 Bundle Item price cannot differ per website - integration tests fix.
1 parent 6cc13cc commit 88ea963

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ private function getBundleConfiguration1()
163163
[
164164
'sku' => 'simple1',
165165
'qty' => 1,
166+
'price' => 100,
167+
'price_type' => 0,
166168
],
167169
]
168170
],
@@ -192,14 +194,20 @@ private function getBundleConfiguration2()
192194
[
193195
'sku' => 'simple1',
194196
'qty' => 3,
197+
'price' => 100,
198+
'price_type' => 0,
195199
],
196200
[
197201
'sku' => 'simple2',
198202
'qty' => 2,
203+
'price' => 100,
204+
'price_type' => 0,
199205
],
200206
[
201207
'sku' => 'simple3',
202208
'qty' => 1,
209+
'price' => 100,
210+
'price_type' => 0,
203211
],
204212
]
205213
]
@@ -229,14 +237,20 @@ private function getBundleConfiguration3()
229237
[
230238
'sku' => 'simple1',
231239
'qty' => 1,
240+
'price' => 100,
241+
'price_type' => 0,
232242
],
233243
[
234244
'sku' => 'simple2',
235245
'qty' => 1,
246+
'price' => 100,
247+
'price_type' => 0,
236248
],
237249
[
238250
'sku' => 'simple3',
239251
'qty' => 1,
252+
'price' => 100,
253+
'price_type' => 0,
240254
]
241255
]
242256
]
@@ -265,10 +279,14 @@ private function getBundleConfiguration4()
265279
[
266280
'sku' => 'simple1',
267281
'qty' => 1,
282+
'price' => 100,
283+
'price_type' => 0,
268284
],
269285
[
270286
'sku' => 'simple2',
271287
'qty' => 3,
288+
'price' => 100,
289+
'price_type' => 0,
272290
],
273291
]
274292
],
@@ -280,10 +298,14 @@ private function getBundleConfiguration4()
280298
[
281299
'sku' => 'simple1',
282300
'qty' => 1,
301+
'price' => 100,
302+
'price_type' => 0,
283303
],
284304
[
285305
'sku' => 'simple2',
286306
'qty' => 3,
307+
'price' => 100,
308+
'price_type' => 0,
287309
],
288310
]
289311
]
@@ -312,10 +334,14 @@ private function getBundleConfiguration5()
312334
[
313335
'sku' => 'simple1',
314336
'qty' => 1,
337+
'price' => 100,
338+
'price_type' => 0,
315339
],
316340
[
317341
'sku' => 'simple2',
318342
'qty' => 3,
343+
'price' => 100,
344+
'price_type' => 0,
319345
],
320346
]
321347
],
@@ -327,10 +353,14 @@ private function getBundleConfiguration5()
327353
[
328354
'sku' => 'simple1',
329355
'qty' => 1,
356+
'price' => 100,
357+
'price_type' => 0,
330358
],
331359
[
332360
'sku' => 'simple2',
333361
'qty' => 3,
362+
'price' => 100,
363+
'price_type' => 0,
334364
],
335365
]
336366
]

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ private function getBundleConfiguration1()
163163
[
164164
'sku' => 'simple1',
165165
'qty' => 1,
166+
'price' => 100,
167+
'price_type' => 0,
166168
],
167169
]
168170
],
@@ -192,14 +194,20 @@ private function getBundleConfiguration2()
192194
[
193195
'sku' => 'simple1',
194196
'qty' => 3,
197+
'price' => 100,
198+
'price_type' => 0,
195199
],
196200
[
197201
'sku' => 'simple2',
198202
'qty' => 2,
203+
'price' => 100,
204+
'price_type' => 0,
199205
],
200206
[
201207
'sku' => 'simple3',
202208
'qty' => 1,
209+
'price' => 100,
210+
'price_type' => 0,
203211
],
204212
]
205213
]
@@ -229,14 +237,20 @@ private function getBundleConfiguration3()
229237
[
230238
'sku' => 'simple1',
231239
'qty' => 1,
240+
'price' => 100,
241+
'price_type' => 0,
232242
],
233243
[
234244
'sku' => 'simple2',
235245
'qty' => 1,
246+
'price' => 100,
247+
'price_type' => 0,
236248
],
237249
[
238250
'sku' => 'simple3',
239251
'qty' => 1,
252+
'price' => 100,
253+
'price_type' => 0,
240254
]
241255
]
242256
]
@@ -265,10 +279,14 @@ private function getBundleConfiguration4()
265279
[
266280
'sku' => 'simple1',
267281
'qty' => 1,
282+
'price' => 100,
283+
'price_type' => 0,
268284
],
269285
[
270286
'sku' => 'simple2',
271287
'qty' => 3,
288+
'price' => 100,
289+
'price_type' => 0,
272290
],
273291
]
274292
],
@@ -280,10 +298,14 @@ private function getBundleConfiguration4()
280298
[
281299
'sku' => 'simple1',
282300
'qty' => 1,
301+
'price' => 100,
302+
'price_type' => 0,
283303
],
284304
[
285305
'sku' => 'simple2',
286306
'qty' => 3,
307+
'price' => 100,
308+
'price_type' => 0,
287309
],
288310
]
289311
]
@@ -312,10 +334,14 @@ private function getBundleConfiguration5()
312334
[
313335
'sku' => 'simple1',
314336
'qty' => 1,
337+
'price' => 100,
338+
'price_type' => 0,
315339
],
316340
[
317341
'sku' => 'simple2',
318342
'qty' => 3,
343+
'price' => 100,
344+
'price_type' => 0,
319345
],
320346
]
321347
],
@@ -327,10 +353,14 @@ private function getBundleConfiguration5()
327353
[
328354
'sku' => 'simple1',
329355
'qty' => 1,
356+
'price' => 100,
357+
'price_type' => 0,
330358
],
331359
[
332360
'sku' => 'simple2',
333361
'qty' => 3,
362+
'price' => 100,
363+
'price_type' => 0,
334364
],
335365
]
336366
]

0 commit comments

Comments
 (0)