@@ -577,7 +577,8 @@ public function testCreateThrowsExceptionIfTargetProductDoesNotExist()
577
577
public function testUpdate ()
578
578
{
579
579
$ 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 }" ;
581
582
$ requestData = [
582
583
'isGlobalScopeContent ' => false ,
583
584
'linkId ' => $ linkId ,
@@ -607,7 +608,8 @@ public function testUpdateSavesDataInGlobalScopeAndDoesNotAffectValuesStoredInSt
607
608
{
608
609
$ originalLink = $ this ->getTargetLink ($ this ->getTargetProduct ());
609
610
$ 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 }" ;
611
613
$ requestData = [
612
614
'isGlobalScopeContent ' => true ,
613
615
'linkId ' => $ linkId ,
@@ -665,7 +667,8 @@ public function testUpdateThrowsExceptionIfTargetProductDoesNotExist()
665
667
public function testUpdateThrowsExceptionIfThereIsNoDownloadableLinkWithGivenId ()
666
668
{
667
669
$ 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 }" ;
669
672
$ requestData = [
670
673
'isGlobalScopeContent ' => true ,
671
674
'linkId ' => 9999 ,
@@ -691,7 +694,8 @@ public function testUpdateThrowsExceptionIfThereIsNoDownloadableLinkWithGivenId(
691
694
public function testUpdateThrowsExceptionIfLinkPriceIsInvalid ($ linkPrice )
692
695
{
693
696
$ 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 }" ;
695
699
$ requestData = [
696
700
'isGlobalScopeContent ' => false ,
697
701
'linkId ' => $ linkId ,
@@ -717,7 +721,8 @@ public function testUpdateThrowsExceptionIfLinkPriceIsInvalid($linkPrice)
717
721
public function testUpdateThrowsExceptionIfSortOrderIsInvalid ($ sortOrder )
718
722
{
719
723
$ 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 }" ;
721
726
$ requestData = [
722
727
'isGlobalScopeContent ' => false ,
723
728
'linkId ' => $ linkId ,
@@ -742,7 +747,8 @@ public function testUpdateThrowsExceptionIfSortOrderIsInvalid($sortOrder)
742
747
public function testUpdateThrowsExceptionIfNumberOfDownloadsIsInvalid ($ numberOfDownloads )
743
748
{
744
749
$ 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 }" ;
746
752
$ requestData = [
747
753
'isGlobalScopeContent ' => false ,
748
754
'linkId ' => $ linkId ,
0 commit comments