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
2363
2363
}
2364
2364
2365
2365
/**
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
2367
2367
*
2368
2368
* @magentoApiDataFixture Magento/Catalog/_files/category.php
2369
2369
* @magentoApiDataFixture Magento/Catalog/_files/multiple_products_with_different_sku_and_name.php
@@ -2425,28 +2425,7 @@ public function testProductPartialSkuHyphenatedFullTextSearchQuery(): void
2425
2425
QUERY ;
2426
2426
2427
2427
$ 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 ' ]);
2450
2429
}
2451
2430
2452
2431
/**
You can’t perform that action at this time.
0 commit comments