Skip to content

Commit 10bae99

Browse files
committed
ACQE-8253: [AC-11810] [Issue] Magento2.4.6-p4 Order API Simple Item missing price
- Changed SOAP request with webApi call
1 parent 16bbc16 commit 10bae99

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

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

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ class OrderApiConfigurableVariationsPriceTest extends WebapiAbstract
3131
{
3232
private const RESOURCE_PATH = '/V1/orders';
3333

34+
private const SERVICE_READ_NAME = 'salesOrderRepositoryV1';
35+
36+
private const SERVICE_VERSION = 'V1';
37+
3438
/**
3539
* Fixture storage manager for resolving test data.
3640
*
@@ -181,19 +185,18 @@ public function testSimpleItemsAssignedToConfigurableHaveValidPrice(): void
181185
*/
182186
private function callOrderApi(string $orderId): array
183187
{
184-
return $this->_webApiCall([
188+
$serviceInfo = [
185189
'rest' => [
186190
'resourcePath' => self::RESOURCE_PATH . '/' . $orderId,
187191
'httpMethod' => Request::HTTP_METHOD_GET,
188192
],
189193
'soap' => [
190-
'service' => 'salesOrderRepositoryV1',
191-
'operation' => 'salesOrderRepositoryV1Get',
192-
'parameters' => [
193-
'id' => (int)$orderId,
194-
],
194+
'service' => self::SERVICE_READ_NAME,
195+
'serviceVersion' => self::SERVICE_VERSION,
196+
'operation' => self::SERVICE_READ_NAME . 'get',
195197
],
196-
]);
198+
];
199+
return $this->_webApiCall($serviceInfo, ['id' => $orderId]);
197200
}
198201

199202
/**

0 commit comments

Comments
 (0)