Skip to content

Commit 0ec2250

Browse files
author
Andrii Kasian
committed
MAGETWO-32429: Prepare pull request
1 parent febed21 commit 0ec2250

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

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

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,8 @@ public function testCreateThrowsExceptionIfTargetProductDoesNotExist()
577577
public function testUpdate()
578578
{
579579
$linkId = $this->getTargetLink($this->getTargetProduct())->getId();
580-
$this->updateServiceInfo['rest']['resourcePath'] = "/V1/products/downloadable-product/downloadable-links/{$linkId}";
580+
$this->updateServiceInfo['rest']['resourcePath']
581+
= "/V1/products/downloadable-product/downloadable-links/{$linkId}";
581582
$requestData = [
582583
'isGlobalScopeContent' => false,
583584
'linkId' => $linkId,
@@ -607,7 +608,8 @@ public function testUpdateSavesDataInGlobalScopeAndDoesNotAffectValuesStoredInSt
607608
{
608609
$originalLink = $this->getTargetLink($this->getTargetProduct());
609610
$linkId = $originalLink->getId();
610-
$this->updateServiceInfo['rest']['resourcePath'] = "/V1/products/downloadable-product/downloadable-links/{$linkId}";
611+
$this->updateServiceInfo['rest']['resourcePath']
612+
= "/V1/products/downloadable-product/downloadable-links/{$linkId}";
611613
$requestData = [
612614
'isGlobalScopeContent' => true,
613615
'linkId' => $linkId,
@@ -665,7 +667,8 @@ public function testUpdateThrowsExceptionIfTargetProductDoesNotExist()
665667
public function testUpdateThrowsExceptionIfThereIsNoDownloadableLinkWithGivenId()
666668
{
667669
$linkId = 9999;
668-
$this->updateServiceInfo['rest']['resourcePath'] = "/V1/products/downloadable-product/downloadable-links/{$linkId}";
670+
$this->updateServiceInfo['rest']['resourcePath']
671+
= "/V1/products/downloadable-product/downloadable-links/{$linkId}";
669672
$requestData = [
670673
'isGlobalScopeContent' => true,
671674
'linkId' => 9999,
@@ -691,7 +694,8 @@ public function testUpdateThrowsExceptionIfThereIsNoDownloadableLinkWithGivenId(
691694
public function testUpdateThrowsExceptionIfLinkPriceIsInvalid($linkPrice)
692695
{
693696
$linkId = $this->getTargetLink($this->getTargetProduct())->getId();
694-
$this->updateServiceInfo['rest']['resourcePath'] = "/V1/products/downloadable-product/downloadable-links/{$linkId}";
697+
$this->updateServiceInfo['rest']['resourcePath']
698+
= "/V1/products/downloadable-product/downloadable-links/{$linkId}";
695699
$requestData = [
696700
'isGlobalScopeContent' => false,
697701
'linkId' => $linkId,
@@ -717,7 +721,8 @@ public function testUpdateThrowsExceptionIfLinkPriceIsInvalid($linkPrice)
717721
public function testUpdateThrowsExceptionIfSortOrderIsInvalid($sortOrder)
718722
{
719723
$linkId = $this->getTargetLink($this->getTargetProduct())->getId();
720-
$this->updateServiceInfo['rest']['resourcePath'] = "/V1/products/downloadable-product/downloadable-links/{$linkId}";
724+
$this->updateServiceInfo['rest']['resourcePath']
725+
= "/V1/products/downloadable-product/downloadable-links/{$linkId}";
721726
$requestData = [
722727
'isGlobalScopeContent' => false,
723728
'linkId' => $linkId,
@@ -742,7 +747,8 @@ public function testUpdateThrowsExceptionIfSortOrderIsInvalid($sortOrder)
742747
public function testUpdateThrowsExceptionIfNumberOfDownloadsIsInvalid($numberOfDownloads)
743748
{
744749
$linkId = $this->getTargetLink($this->getTargetProduct())->getId();
745-
$this->updateServiceInfo['rest']['resourcePath'] = "/V1/products/downloadable-product/downloadable-links/{$linkId}";
750+
$this->updateServiceInfo['rest']['resourcePath']
751+
= "/V1/products/downloadable-product/downloadable-links/{$linkId}";
746752
$requestData = [
747753
'isGlobalScopeContent' => false,
748754
'linkId' => $linkId,

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,8 @@ public function testCreateThrowsExceptionIfTargetProductDoesNotExist()
363363
public function testUpdate()
364364
{
365365
$sampleId = $this->getTargetSample($this->getTargetProduct())->getId();
366-
$this->updateServiceInfo['rest']['resourcePath'] = "/V1/products/downloadable-product/downloadable-links/samples/{$sampleId}";
366+
$this->updateServiceInfo['rest']['resourcePath']
367+
= "/V1/products/downloadable-product/downloadable-links/samples/{$sampleId}";
367368
$requestData = [
368369
'isGlobalScopeContent' => false,
369370
'sampleId' => $sampleId,
@@ -388,7 +389,8 @@ public function testUpdateSavesDataInGlobalScopeAndDoesNotAffectValuesStoredInSt
388389
{
389390
$originalSample = $this->getTargetSample($this->getTargetProduct());
390391
$sampleId = $originalSample->getId();
391-
$this->updateServiceInfo['rest']['resourcePath'] = "/V1/products/downloadable-product/downloadable-links/samples/{$sampleId}";
392+
$this->updateServiceInfo['rest']['resourcePath']
393+
= "/V1/products/downloadable-product/downloadable-links/samples/{$sampleId}";
392394
$requestData = [
393395
'isGlobalScopeContent' => true,
394396
'sampleId' => $sampleId,
@@ -436,7 +438,8 @@ public function testUpdateThrowsExceptionIfTargetProductDoesNotExist()
436438
public function testUpdateThrowsExceptionIfThereIsNoDownloadableSampleWithGivenId()
437439
{
438440
$sampleId = 9999;
439-
$this->updateServiceInfo['rest']['resourcePath'] = "/V1/products/downloadable-product/downloadable-links/samples/{$sampleId}";
441+
$this->updateServiceInfo['rest']['resourcePath']
442+
= "/V1/products/downloadable-product/downloadable-links/samples/{$sampleId}";
440443
$requestData = [
441444
'isGlobalScopeContent' => true,
442445
'sampleId' => 9999,
@@ -459,7 +462,8 @@ public function testUpdateThrowsExceptionIfThereIsNoDownloadableSampleWithGivenI
459462
public function testUpdateThrowsExceptionIfSortOrderIsInvalid($sortOrder)
460463
{
461464
$sampleId = $this->getTargetSample($this->getTargetProduct())->getId();
462-
$this->updateServiceInfo['rest']['resourcePath'] = "/V1/products/downloadable-product/downloadable-links/samples/{$sampleId}";
465+
$this->updateServiceInfo['rest']['resourcePath']
466+
= "/V1/products/downloadable-product/downloadable-links/samples/{$sampleId}";
463467
$requestData = [
464468
'isGlobalScopeContent' => false,
465469
'sampleId' => $sampleId,

0 commit comments

Comments
 (0)