Skip to content

Commit 0af286e

Browse files
32370 Fixed WebAPI test case failure
1 parent 47f1d6d commit 0af286e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Sales/RetrieveOrdersByOrderNumberTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ public function testGetCustomerDescendingSortedOrders()
417417
customer {
418418
orders(
419419
sort: {
420-
sort_field: NUMBER,
420+
sort_field: ORDER_ID,
421421
sort_direction: DESC
422422
}
423423
) {
@@ -445,7 +445,6 @@ public function testGetCustomerDescendingSortedOrders()
445445
$customerOrderItemsInResponse = $response['customer']['orders']['items'];
446446
$expectedOrderNumbers = ['100000008', '100000007','100000006', '100000005', '100000004','100000002'];
447447

448-
449448
foreach ($expectedOrderNumbers as $key) {
450449
$orderItemInResponse = $customerOrderItemsInResponse[$key];
451450
$this->assertEquals(

0 commit comments

Comments
 (0)