Skip to content

Commit 96eb8a7

Browse files
committed
AC-9244: rest endpoint missing state and status fields
1 parent 6eca9c7 commit 96eb8a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dev/tests/api-functional/testsuite/Magento/Sales/Service/V1/OrderResponseNullKeysTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public function testUserWithRestrictedWebsiteAndStoreGroup()
9393
{
9494
$order = $this->fixtures->get('order');
9595
$orderIncrementId = $order->getData('increment_id');
96+
$storeCode = $order->getStore()->getCode();
9697
$this->nullifyOrderStateStatus((int) $order->getId());
9798

9899
$user = $this->fixtures->get('allUser');
@@ -101,7 +102,8 @@ public function testUserWithRestrictedWebsiteAndStoreGroup()
101102
'rest' => [
102103
'resourcePath' => '/V1/orders/' . $orderIncrementId,
103104
'httpMethod' => 'GET',
104-
'token' => $accessToken
105+
'token' => $accessToken,
106+
'headers' => ['Store' => $storeCode],
105107
]
106108
];
107109
$result = $this->_webApiCall($serviceInfo);

0 commit comments

Comments
 (0)