Skip to content

Commit f9276c3

Browse files
author
Roman Lytvynenko
committed
MAGETWO-99491: Configurable options attribute position is not saved correctly via API
1 parent b25b512 commit f9276c3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dev/tests/api-functional/testsuite/Magento/ConfigurableProduct/Api/LinkManagementTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
class LinkManagementTest extends WebapiAbstract
1616
{
1717
const SERVICE_NAME = 'configurableProductLinkManagementV1';
18+
const OPTION_SERVICE_NAME = 'configurableProductOptionRepositoryV1';
1819
const SERVICE_VERSION = 'V1';
1920
const RESOURCE_PATH = '/V1/configurable-products';
2021

@@ -267,17 +268,17 @@ private function deleteProduct(string $sku): bool
267268
* @param string $productSku
268269
* @return array
269270
*/
270-
protected function getConfigurableAttribute($productSku): array
271+
protected function getConfigurableAttribute(string $productSku): array
271272
{
272273
$serviceInfo = [
273274
'rest' => [
274275
'resourcePath' => self::RESOURCE_PATH . '/' . $productSku . '/options/all',
275276
'httpMethod' => Request::HTTP_METHOD_GET
276277
],
277278
'soap' => [
278-
'service' => self::SERVICE_NAME,
279+
'service' => self::OPTION_SERVICE_NAME,
279280
'serviceVersion' => self::SERVICE_VERSION,
280-
'operation' => self::SERVICE_NAME . 'GetList'
281+
'operation' => self::OPTION_SERVICE_NAME . 'GetList'
281282
]
282283
];
283284
return $this->_webApiCall($serviceInfo, ['sku' => $productSku]);

0 commit comments

Comments
 (0)