Skip to content

Commit e00a4de

Browse files
32370 Fixed failed WebAPI test
1 parent 0af286e commit e00a4de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 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: ORDER_ID,
420+
sort_field: CREATED_AT,
421421
sort_direction: DESC
422422
}
423423
) {
@@ -445,11 +445,11 @@ public function testGetCustomerDescendingSortedOrders()
445445
$customerOrderItemsInResponse = $response['customer']['orders']['items'];
446446
$expectedOrderNumbers = ['100000008', '100000007','100000006', '100000005', '100000004','100000002'];
447447

448-
foreach ($expectedOrderNumbers as $key) {
448+
foreach ($expectedOrderNumbers as $key => $data) {
449449
$orderItemInResponse = $customerOrderItemsInResponse[$key];
450450
$this->assertEquals(
451451
$orderItemInResponse['number'],
452-
$expectedOrderNumbers[$key],
452+
$data,
453453
"The order number is different than the expected for order - {$orderItemInResponse['number']}"
454454
);
455455
}

0 commit comments

Comments
 (0)