File tree Expand file tree Collapse file tree 1 file changed +2
-23
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog Expand file tree Collapse file tree 1 file changed +2
-23
lines changed Original file line number Diff line number Diff line change @@ -2363,7 +2363,7 @@ public function testProductPartialSkuFullTextSearchQuery(): void
23632363 }
23642364
23652365 /**
2366- * Partial search on hyphenated sku filtered for price and sorted by price and sku
2366+ * Partial search on hyphenated sku having visibility as catalog
23672367 *
23682368 * @magentoApiDataFixture Magento/Catalog/_files/category.php
23692369 * @magentoApiDataFixture Magento/Catalog/_files/multiple_products_with_different_sku_and_name.php
@@ -2425,28 +2425,7 @@ public function testProductPartialSkuHyphenatedFullTextSearchQuery(): void
24252425QUERY ;
24262426
24272427 $ response = $ this ->graphQlQuery ($ query );
2428- $ this ->assertEquals (1 , $ response ['products ' ]['total_count ' ]);
2429-
2430- $ filteredProducts = [$ prod2 ];
2431- $ productItemsInResponse = array_map (null , $ response ['products ' ]['items ' ], $ filteredProducts );
2432- foreach ($ productItemsInResponse as $ itemIndex => $ itemArray ) {
2433- $ this ->assertNotEmpty ($ itemArray );
2434- $ this ->assertResponseFields (
2435- $ productItemsInResponse [$ itemIndex ][0 ],
2436- [
2437- 'sku ' => $ filteredProducts [$ itemIndex ]->getSku (),
2438- 'name ' => $ filteredProducts [$ itemIndex ]->getName (),
2439- 'price ' => [
2440- 'minimalPrice ' => [
2441- 'amount ' => [
2442- 'value ' => $ filteredProducts [$ itemIndex ]->getSpecialPrice (),
2443- 'currency ' => 'USD '
2444- ]
2445- ]
2446- ]
2447- ]
2448- );
2449- }
2428+ $ this ->assertEquals (0 , $ response ['products ' ]['total_count ' ]);
24502429 }
24512430
24522431 /**
You can’t perform that action at this time.
0 commit comments