@@ -284,9 +284,11 @@ protected function setUp()
284
284
->getMock ();
285
285
$ this ->storeResolver =
286
286
$ this ->getMockBuilder (\Magento \CatalogImportExport \Model \Import \Product \StoreResolver::class)
287
- ->setMethods ([
288
- 'getStoreCodeToId ' ,
289
- ])
287
+ ->setMethods (
288
+ [
289
+ 'getStoreCodeToId ' ,
290
+ ]
291
+ )
290
292
->disableOriginalConstructor ()
291
293
->getMock ();
292
294
$ this ->skuProcessor =
@@ -596,9 +598,13 @@ public function testGetMultipleValueSeparatorDefault()
596
598
public function testGetMultipleValueSeparatorFromParameters ()
597
599
{
598
600
$ expectedSeparator = 'value ' ;
599
- $ this ->setPropertyValue ($ this ->importProduct , '_parameters ' , [
600
- \Magento \ImportExport \Model \Import::FIELD_FIELD_MULTIPLE_VALUE_SEPARATOR => $ expectedSeparator ,
601
- ]);
601
+ $ this ->setPropertyValue (
602
+ $ this ->importProduct ,
603
+ '_parameters ' ,
604
+ [
605
+ \Magento \ImportExport \Model \Import::FIELD_FIELD_MULTIPLE_VALUE_SEPARATOR => $ expectedSeparator ,
606
+ ]
607
+ );
602
608
603
609
$ this ->assertEquals (
604
610
$ expectedSeparator ,
@@ -618,9 +624,13 @@ public function testGetEmptyAttributeValueConstantDefault()
618
624
public function testGetEmptyAttributeValueConstantFromParameters ()
619
625
{
620
626
$ expectedSeparator = '__EMPTY__VALUE__TEST__ ' ;
621
- $ this ->setPropertyValue ($ this ->importProduct , '_parameters ' , [
622
- \Magento \ImportExport \Model \Import::FIELD_EMPTY_ATTRIBUTE_VALUE_CONSTANT => $ expectedSeparator ,
623
- ]);
627
+ $ this ->setPropertyValue (
628
+ $ this ->importProduct ,
629
+ '_parameters ' ,
630
+ [
631
+ \Magento \ImportExport \Model \Import::FIELD_EMPTY_ATTRIBUTE_VALUE_CONSTANT => $ expectedSeparator ,
632
+ ]
633
+ );
624
634
625
635
$ this ->assertEquals (
626
636
$ expectedSeparator ,
@@ -632,9 +642,12 @@ public function testDeleteProductsForReplacement()
632
642
{
633
643
$ importProduct = $ this ->getMockBuilder (Product::class)
634
644
->disableOriginalConstructor ()
635
- ->setMethods ([
636
- 'setParameters ' , '_deleteProducts '
637
- ])
645
+ ->setMethods (
646
+ [
647
+ 'setParameters ' ,
648
+ '_deleteProducts '
649
+ ]
650
+ )
638
651
->getMock ();
639
652
640
653
$ importProduct ->expects ($ this ->once ())->method ('setParameters ' )->with (
@@ -764,9 +777,13 @@ public function testGetProductWebsites()
764
777
'key 3 ' => 'val ' ,
765
778
];
766
779
$ expectedResult = array_keys ($ productValue );
767
- $ this ->setPropertyValue ($ this ->importProduct , 'websitesCache ' , [
768
- $ productSku => $ productValue
769
- ]);
780
+ $ this ->setPropertyValue (
781
+ $ this ->importProduct ,
782
+ 'websitesCache ' ,
783
+ [
784
+ $ productSku => $ productValue
785
+ ]
786
+ );
770
787
771
788
$ actualResult = $ this ->importProduct ->getProductWebsites ($ productSku );
772
789
@@ -785,9 +802,13 @@ public function testGetProductCategories()
785
802
'key 3 ' => 'val ' ,
786
803
];
787
804
$ expectedResult = array_keys ($ productValue );
788
- $ this ->setPropertyValue ($ this ->importProduct , 'categoriesCache ' , [
789
- $ productSku => $ productValue
790
- ]);
805
+ $ this ->setPropertyValue (
806
+ $ this ->importProduct ,
807
+ 'categoriesCache ' ,
808
+ [
809
+ $ productSku => $ productValue
810
+ ]
811
+ );
791
812
792
813
$ actualResult = $ this ->importProduct ->getProductCategories ($ productSku );
793
814
@@ -1112,9 +1133,13 @@ public function testValidateRowSetAttributeSetCodeIntoRowData()
1112
1133
->disableOriginalConstructor ()
1113
1134
->getMock ();
1114
1135
$ productType ->expects ($ this ->once ())->method ('isRowValid ' )->with ($ expectedRowData );
1115
- $ this ->setPropertyValue ($ importProduct , '_productTypeModels ' , [
1116
- $ newSku ['type_id ' ] => $ productType
1117
- ]);
1136
+ $ this ->setPropertyValue (
1137
+ $ importProduct ,
1138
+ '_productTypeModels ' ,
1139
+ [
1140
+ $ newSku ['type_id ' ] => $ productType
1141
+ ]
1142
+ );
1118
1143
1119
1144
//suppress option validation
1120
1145
$ this ->_rewriteGetOptionEntityInImportProduct ($ importProduct );
0 commit comments