Skip to content

Commit 14a97fb

Browse files
committed
MC-15250: Explicit product sorting in PageBuilder Products Content type
1 parent fb2d731 commit 14a97fb

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

app/code/Magento/PageBuilder/composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"magento/module-directory": "*",
1919
"magento/module-email": "*",
2020
"magento/module-require-js": "*",
21-
"magento/module-catalog-inventory": "*",
2221
"php": "~7.1.3||~7.2.0||~7.3.0"
2322
},
2423
"conflict": {

app/code/Magento/PageBuilder/etc/module.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
<module name="Magento_Eav"/>
1212
<module name="Magento_Cms"/>
1313
<module name="Magento_Catalog"/>
14-
<module name="Magento_CatalogInventory"/>
1514
<module name="Magento_Backend"/>
1615
<module name="Magento_Ui"/>
1716
<module name="Magento_Theme"/>

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ public function testSortOptions($productSort)
6969
)
7070
);
7171

72+
$collection->getSize();
73+
7274
$this->assertEquals(
7375
$actualOrder,
7476
$expectedOrder,
@@ -124,10 +126,10 @@ public function productSortDataProvider() : array
124126
'1_PB_PRODUCT'
125127
],
126128
'low_stock_first' => [
129+
'B_PB_PRODUCT',
127130
'1_PB_PRODUCT',
128131
'a_pb_product',
129-
'C_PB_PRODUCT',
130-
'B_PB_PRODUCT'
132+
'C_PB_PRODUCT'
131133
],
132134
'high_stock_first' => [
133135
'C_PB_PRODUCT',
@@ -139,10 +141,8 @@ public function productSortDataProvider() : array
139141
'1_PB_PRODUCT',
140142
'a_pb_product',
141143
'C_PB_PRODUCT',
142-
'B_PB_PRODUCT'
143144
],
144145
'price_low_to_high' => [
145-
'B_PB_PRODUCT',
146146
'C_PB_PRODUCT',
147147
'a_pb_product',
148148
'1_PB_PRODUCT'

0 commit comments

Comments
 (0)