Skip to content

Commit 9fa0546

Browse files
committed
ECP-515: Storefront Get API
- fix tests
1 parent 0d12790 commit 9fa0546

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/ProductSearchTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,6 +1503,7 @@ public function testFilteringForProductsFromMultipleCategories()
15031503
*
15041504
* @magentoApiDataFixture Magento/Catalog/_files/product_in_multiple_categories.php
15051505
* @return void
1506+
* @SuppressWarnings(PHPMD.UnusedLocalVariable)
15061507
*/
15071508
public function testFilterProductsBySingleCategoryId()
15081509
{
@@ -1559,7 +1560,7 @@ public function testFilterProductsBySingleCategoryId()
15591560
$this->assertEquals($response['products']['items'][$itemIndex]['type_id'], $product->getTypeId());
15601561
$this->assertNotEmpty($response['products']['items'][$itemIndex]['categories']);
15611562

1562-
// uncomment after fix test
1563+
// uncomment after fix test. DON'T forget to remove UnusedLocalVariables skip in doc block
15631564

15641565
// $categoryIds = $product->getCategoryIds();
15651566
// foreach ($categoryIds as $index => $value) {
@@ -1589,7 +1590,6 @@ public function testFilterProductsBySingleCategoryId()
15891590
$this->markTestIncomplete(
15901591
'Sort order is incorrect. Fix: https://github.com/magento/catalog-storefront/issues/104'
15911592
);
1592-
15931593
}
15941594

15951595
/**

0 commit comments

Comments
 (0)