Skip to content

Commit 4e85364

Browse files
committed
PB-261: Add Missing Integration P0-P1 Tests For Products
- add integration tests
1 parent 75edacc commit 4e85364

File tree

2 files changed

+24
-14
lines changed

2 files changed

+24
-14
lines changed

dev/tests/integration/testsuite/Magento/PageBuilder/Model/Catalog/SortingTest.php

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ public function productSortDataProvider() : array
247247
'low_stock_first' => [
248248
'gift-card',
249249
'grouped',
250+
'bundle_product',
250251
'configurable',
251252
'B_PB_PRODUCT',
252253
'1_PB_PRODUCT',
@@ -259,15 +260,13 @@ public function productSortDataProvider() : array
259260
'simple_100000001',
260261
'PB_VIRTUAL_PRODUCT',
261262
'simple1',
262-
'bundle_product',
263263
'simple3',
264264
'C_PB_PRODUCT'
265265
],
266266
'high_stock_first' => [
267267
'C_PB_PRODUCT',
268268
'simple3',
269269
'simple1',
270-
'bundle_product',
271270
'PB_VIRTUAL_PRODUCT',
272271
'simple_100000001',
273272
'simple-with-fpt',
@@ -278,9 +277,10 @@ public function productSortDataProvider() : array
278277
'a_pb_product',
279278
'1_PB_PRODUCT',
280279
'B_PB_PRODUCT',
281-
'gift-card',
282280
'configurable',
283-
'grouped'
281+
'bundle_product',
282+
'grouped',
283+
'gift-card'
284284
],
285285
'price_high_to_low' => [
286286
'bundle_product',
@@ -289,36 +289,36 @@ public function productSortDataProvider() : array
289289
'simple_100000001',
290290
'simple-with-fpt',
291291
'PB_PRODUCT_CPR',
292+
'grouped',
292293
'simple_100000002',
293294
'a_pb_product',
294-
'downloadable-product-price-on-link',
295295
'downloadable-product-price-on-product',
296296
'C_PB_PRODUCT',
297297
'simple3',
298298
'simple1',
299-
'gift-card',
300-
'B_PB_PRODUCT',
301299
'configurable',
302-
'grouped'
300+
'downloadable-product-price-on-link',
301+
'gift-card',
302+
'B_PB_PRODUCT'
303303
],
304304
'price_low_to_high' => [
305305
'B_PB_PRODUCT',
306306
'gift-card',
307+
'downloadable-product-price-on-link',
308+
'configurable',
307309
'simple1',
308310
'simple3',
309311
'C_PB_PRODUCT',
310312
'downloadable-product-price-on-product',
311-
'downloadable-product-price-on-link',
312313
'a_pb_product',
313314
'simple_100000002',
315+
'grouped',
314316
'PB_PRODUCT_CPR',
315317
'simple-with-fpt',
316318
'simple_100000001',
317319
'PB_VIRTUAL_PRODUCT',
318320
'1_PB_PRODUCT',
319-
'bundle_product',
320-
'configurable',
321-
'grouped'
321+
'bundle_product'
322322
],
323323
'position' => [
324324
'B_PB_PRODUCT',
@@ -336,7 +336,17 @@ public function productSortDataProvider() : array
336336
'1_PB_PRODUCT',
337337
'PB_PRODUCT_CPR',
338338
'PB_VIRTUAL_PRODUCT',
339-
'gift-card'
339+
'simple1',
340+
'simple3',
341+
'bundle_product',
342+
'configurable',
343+
'gift-card',
344+
'grouped',
345+
'simple_100000001',
346+
'simple_100000002',
347+
'simple-with-fpt',
348+
'downloadable-product-price-on-product',
349+
'downloadable-product-price-on-link'
340350
]
341351
],
342352
]

dev/tests/integration/testsuite/Magento/PageBuilder/_files/catalog_sorting/bundle_product.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
->setSku('bundle_product')
4242
->setVisibility(\Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH)
4343
->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
44-
->setStockData(['use_config_manage_stock' => 1, 'qty' => 100, 'is_qty_decimal' => 0, 'is_in_stock' => 1])
44+
->setStockData(['use_config_manage_stock' => 1, 'is_in_stock' => 1])
4545
->setPriceView(0)
4646
->setPriceType(\Magento\Bundle\Model\Product\Price::PRICE_TYPE_FIXED)
4747
->setPrice(110.0)

0 commit comments

Comments
 (0)