Skip to content

Commit 94bb238

Browse files
committed
MC-32278: Position sort does not work in GraphQl.
- fix test
1 parent 5ef3a83 commit 94bb238

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ public function testSortByPosition()
11601160
QUERY;
11611161
$resultDesc = $this->graphQlQuery($queryDesc);
11621162
$this->assertArrayNotHasKey('errors', $resultDesc);
1163-
$productsDesc = array_column($resultAsc['products']['items'], 'sku');
1163+
$productsDesc = array_column($resultDesc['products']['items'], 'sku');
11641164
$expectedProductsDesc = array_reverse($expectedProductsAsc);
11651165
$this->assertEquals($expectedProductsDesc, $productsDesc);
11661166
}

0 commit comments

Comments
 (0)