File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
dev/tests/api-functional/testsuite/Magento/Downloadable/Api Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -794,7 +794,7 @@ public function testDelete()
794
794
$ linkId = $ this ->getTargetLink ($ this ->getTargetProduct ())->getId ();
795
795
$ this ->deleteServiceInfo ['rest ' ]['resourcePath ' ] = "/V1/products/downloadable-links/ {$ linkId }" ;
796
796
$ requestData = [
797
- 'linkId ' => $ linkId ,
797
+ 'id ' => $ linkId ,
798
798
];
799
799
800
800
$ this ->assertTrue ($ this ->_webApiCall ($ this ->deleteServiceInfo , $ requestData ));
@@ -811,7 +811,7 @@ public function testDeleteThrowsExceptionIfThereIsNoDownloadableLinkWithGivenId(
811
811
$ linkId = 9999 ;
812
812
$ this ->deleteServiceInfo ['rest ' ]['resourcePath ' ] = "/V1/products/downloadable-links/ {$ linkId }" ;
813
813
$ requestData = [
814
- 'linkId ' => $ linkId ,
814
+ 'id ' => $ linkId ,
815
815
];
816
816
817
817
$ this ->_webApiCall ($ this ->deleteServiceInfo , $ requestData );
Original file line number Diff line number Diff line change @@ -493,7 +493,7 @@ public function testDelete()
493
493
$ sampleId = $ this ->getTargetSample ($ this ->getTargetProduct ())->getId ();
494
494
$ this ->deleteServiceInfo ['rest ' ]['resourcePath ' ] = "/V1/products/downloadable-links/samples/ {$ sampleId }" ;
495
495
$ requestData = [
496
- 'sampleId ' => $ sampleId ,
496
+ 'id ' => $ sampleId ,
497
497
];
498
498
499
499
$ this ->assertTrue ($ this ->_webApiCall ($ this ->deleteServiceInfo , $ requestData ));
@@ -510,7 +510,7 @@ public function testDeleteThrowsExceptionIfThereIsNoDownloadableSampleWithGivenI
510
510
$ sampleId = 9999 ;
511
511
$ this ->deleteServiceInfo ['rest ' ]['resourcePath ' ] = "/V1/products/downloadable-links/samples/ {$ sampleId }" ;
512
512
$ requestData = [
513
- 'sampleId ' => $ sampleId ,
513
+ 'id ' => $ sampleId ,
514
514
];
515
515
516
516
$ this ->_webApiCall ($ this ->deleteServiceInfo , $ requestData );
You can’t perform that action at this time.
0 commit comments