File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
dev/tests/api-functional/testsuite/Magento/Sales/Service/V1 Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ class OrderApiConfigurableVariationsPriceTest extends WebapiAbstract
31
31
{
32
32
private const RESOURCE_PATH = '/V1/orders ' ;
33
33
34
+ private const SERVICE_READ_NAME = 'salesOrderRepositoryV1 ' ;
35
+
36
+ private const SERVICE_VERSION = 'V1 ' ;
37
+
34
38
/**
35
39
* Fixture storage manager for resolving test data.
36
40
*
@@ -181,19 +185,18 @@ public function testSimpleItemsAssignedToConfigurableHaveValidPrice(): void
181
185
*/
182
186
private function callOrderApi (string $ orderId ): array
183
187
{
184
- return $ this -> _webApiCall ( [
188
+ $ serviceInfo = [
185
189
'rest ' => [
186
190
'resourcePath ' => self ::RESOURCE_PATH . '/ ' . $ orderId ,
187
191
'httpMethod ' => Request::HTTP_METHOD_GET ,
188
192
],
189
193
'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 ' ,
195
197
],
196
- ]);
198
+ ];
199
+ return $ this ->_webApiCall ($ serviceInfo , ['id ' => $ orderId ]);
197
200
}
198
201
199
202
/**
You can’t perform that action at this time.
0 commit comments