Skip to content

Commit d67c77c

Browse files
author
Yu Tang
committed
MAGETWO-28253: Downloadable Integration API
- Fix SOAP test failures
1 parent 4897675 commit d67c77c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dev/tests/api-functional/testsuite/Magento/Downloadable/Api/LinkRepositoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ public function testDelete()
794794
$linkId = $this->getTargetLink($this->getTargetProduct())->getId();
795795
$this->deleteServiceInfo['rest']['resourcePath'] = "/V1/products/downloadable-links/{$linkId}";
796796
$requestData = [
797-
'linkId' => $linkId,
797+
'id' => $linkId,
798798
];
799799

800800
$this->assertTrue($this->_webApiCall($this->deleteServiceInfo, $requestData));
@@ -811,7 +811,7 @@ public function testDeleteThrowsExceptionIfThereIsNoDownloadableLinkWithGivenId(
811811
$linkId = 9999;
812812
$this->deleteServiceInfo['rest']['resourcePath'] = "/V1/products/downloadable-links/{$linkId}";
813813
$requestData = [
814-
'linkId' => $linkId,
814+
'id' => $linkId,
815815
];
816816

817817
$this->_webApiCall($this->deleteServiceInfo, $requestData);

dev/tests/api-functional/testsuite/Magento/Downloadable/Api/SampleRepositoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ public function testDelete()
493493
$sampleId = $this->getTargetSample($this->getTargetProduct())->getId();
494494
$this->deleteServiceInfo['rest']['resourcePath'] = "/V1/products/downloadable-links/samples/{$sampleId}";
495495
$requestData = [
496-
'sampleId' => $sampleId,
496+
'id' => $sampleId,
497497
];
498498

499499
$this->assertTrue($this->_webApiCall($this->deleteServiceInfo, $requestData));
@@ -510,7 +510,7 @@ public function testDeleteThrowsExceptionIfThereIsNoDownloadableSampleWithGivenI
510510
$sampleId = 9999;
511511
$this->deleteServiceInfo['rest']['resourcePath'] = "/V1/products/downloadable-links/samples/{$sampleId}";
512512
$requestData = [
513-
'sampleId' => $sampleId,
513+
'id' => $sampleId,
514514
];
515515

516516
$this->_webApiCall($this->deleteServiceInfo, $requestData);

0 commit comments

Comments
 (0)