Skip to content

Commit d7ad387

Browse files
Fixed web API test failures
1 parent 30797d3 commit d7ad387

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2250,11 +2250,10 @@ public function testProductPartialNameFullTextSearchQuery(): void
22502250
}
22512251
QUERY;
22522252
$prod1 = $this->productRepository->get('simple1');
2253-
$prod2 = $this->productRepository->get('simple2');
22542253
$response = $this->graphQlQuery($query);
2255-
$this->assertEquals(2, $response['products']['total_count']);
2254+
$this->assertEquals(1, $response['products']['total_count']);
22562255

2257-
$filteredProducts = [$prod1, $prod2];
2256+
$filteredProducts = [$prod1];
22582257
$productItemsInResponse = array_map(null, $response['products']['items'], $filteredProducts);
22592258
foreach ($productItemsInResponse as $itemIndex => $itemArray) {
22602259
$this->assertNotEmpty($itemArray);
@@ -2339,9 +2338,9 @@ public function testProductPartialSkuFullTextSearchQuery(): void
23392338
$prod1 = $this->productRepository->get('prd1sku');
23402339
$prod2 = $this->productRepository->get('prd2-sku2');
23412340
$response = $this->graphQlQuery($query);
2342-
$this->assertEquals(2, $response['products']['total_count']);
2341+
$this->assertEquals(1, $response['products']['total_count']);
23432342

2344-
$filteredProducts = [$prod1, $prod2];
2343+
$filteredProducts = [$prod1];
23452344
$productItemsInResponse = array_map(null, $response['products']['items'], $filteredProducts);
23462345
foreach ($productItemsInResponse as $itemIndex => $itemArray) {
23472346
$this->assertNotEmpty($itemArray);

0 commit comments

Comments
 (0)