Skip to content

Commit 47f1d6d

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

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

448+
448449
foreach ($expectedOrderNumbers as $key) {
449450
$orderItemInResponse = $customerOrderItemsInResponse[$key];
450451
$this->assertEquals(

0 commit comments

Comments
 (0)