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
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 /**
You can’t perform that action at this time.
0 commit comments