Skip to content

Commit e419a2f

Browse files
author
Roman Lytvynenko
committed
MC-23252: Pagebuilder products list doesn't work with anchor category
1 parent 36a3e0d commit e419a2f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ public function testProductTotals(
5353

5454
/**
5555
* @return array
56+
*
57+
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
5658
*/
5759
public function productDataProvider()
5860
{

dev/tests/integration/testsuite/Magento/PageBuilder/_files/product_totals/products.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@
8484
->setDescription('Category 2 - Empty Anchor')
8585
->save();
8686

87-
8887
$category = $objectManager->create(\Magento\Catalog\Model\Category::class);
8988
$category->isObjectNew(true);
9089
$category->setId(6)
@@ -121,7 +120,7 @@ function createTestProduct(
121120
$defaultAttributeSet,
122121
$categoryLinkManagement,
123122
$productRepository,
124-
$assignToCategories = [2 ,3]
123+
$assignToCategories = [2, 3]
125124
) {
126125
/** @var $product \Magento\Catalog\Model\Product */
127126
$product = $objectManager->create(\Magento\Catalog\Model\Product::class);

0 commit comments

Comments
 (0)