62
62
* @SuppressWarnings(PHPMD.TooManyFields)
63
63
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
64
64
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
65
+ * @SuppressWarnings(PHPMD.ExcessivePublicCount)
65
66
*/
66
67
class ProductTest extends AbstractImportTestCase
67
68
{
@@ -672,8 +673,8 @@ protected function _initImagesArrayKeys()
672
673
}
673
674
674
675
/**
675
- * @return void
676
- */
676
+ * @return void
677
+ */
677
678
public function testSaveProductAttributes (): void
678
679
{
679
680
$ testTable = 'test_table ' ;
@@ -755,8 +756,8 @@ public function testIsAttributeValidAssertAttrInvalid($attrParams, $rowData): vo
755
756
}
756
757
757
758
/**
758
- * @return void
759
- */
759
+ * @return void
760
+ */
760
761
public function testGetMultipleValueSeparatorDefault (): void
761
762
{
762
763
$ this ->setPropertyValue ($ this ->importProduct , '_parameters ' , null );
@@ -767,8 +768,8 @@ public function testGetMultipleValueSeparatorDefault(): void
767
768
}
768
769
769
770
/**
770
- * @return void
771
- */
771
+ * @return void
772
+ */
772
773
public function testGetMultipleValueSeparatorFromParameters (): void
773
774
{
774
775
$ expectedSeparator = 'value ' ;
@@ -787,8 +788,8 @@ public function testGetMultipleValueSeparatorFromParameters(): void
787
788
}
788
789
789
790
/**
790
- * @return void
791
- */
791
+ * @return void
792
+ */
792
793
public function testGetEmptyAttributeValueConstantDefault (): void
793
794
{
794
795
$ this ->setPropertyValue ($ this ->importProduct , '_parameters ' , null );
@@ -799,8 +800,8 @@ public function testGetEmptyAttributeValueConstantDefault(): void
799
800
}
800
801
801
802
/**
802
- * @return void
803
- */
803
+ * @return void
804
+ */
804
805
public function testGetEmptyAttributeValueConstantFromParameters (): void
805
806
{
806
807
$ expectedSeparator = '__EMPTY__VALUE__TEST__ ' ;
@@ -819,8 +820,8 @@ public function testGetEmptyAttributeValueConstantFromParameters(): void
819
820
}
820
821
821
822
/**
822
- * @return void
823
- */
823
+ * @return void
824
+ */
824
825
public function testDeleteProductsForReplacement (): void
825
826
{
826
827
$ importProduct = $ this ->getMockBuilder (Product::class)
@@ -841,8 +842,8 @@ public function testDeleteProductsForReplacement(): void
841
842
}
842
843
843
844
/**
844
- * @return void
845
- */
845
+ * @return void
846
+ */
846
847
public function testGetMediaGalleryAttributeIdIfNotSetYet (): void
847
848
{
848
849
// reset possible existing id
@@ -914,8 +915,8 @@ public function testValidateRow($rowScope, $oldSku, $expectedResult, $behaviour
914
915
}
915
916
916
917
/**
917
- * @return void
918
- */
918
+ * @return void
919
+ */
919
920
public function testValidateRowDeleteBehaviourAddRowErrorCall (): void
920
921
{
921
922
$ importProduct = $ this ->getMockBuilder (Product::class)
@@ -940,8 +941,8 @@ public function testValidateRowDeleteBehaviourAddRowErrorCall(): void
940
941
}
941
942
942
943
/**
943
- * @return void
944
- */
944
+ * @return void
945
+ */
945
946
public function testValidateRowValidatorCheck (): void
946
947
{
947
948
$ messages = ['validator message ' ];
@@ -1111,8 +1112,8 @@ public function testValidateRowCheckSpecifiedSku($sku, $expectedError): void
1111
1112
}
1112
1113
1113
1114
/**
1114
- * @return void
1115
- */
1115
+ * @return void
1116
+ */
1116
1117
public function testValidateRowProcessEntityIncrement (): void
1117
1118
{
1118
1119
$ count = 0 ;
@@ -1129,8 +1130,8 @@ public function testValidateRowProcessEntityIncrement(): void
1129
1130
}
1130
1131
1131
1132
/**
1132
- * @return void
1133
- */
1133
+ * @return void
1134
+ */
1134
1135
public function testValidateRowValidateExistingProductTypeAddNewSku (): void
1135
1136
{
1136
1137
$ importProduct = $ this ->createModelMockWithErrorAggregator (
@@ -1178,8 +1179,8 @@ public function testValidateRowValidateExistingProductTypeAddNewSku(): void
1178
1179
}
1179
1180
1180
1181
/**
1181
- * @return void
1182
- */
1182
+ * @return void
1183
+ */
1183
1184
public function testValidateRowValidateExistingProductTypeAddErrorRowCall (): void
1184
1185
{
1185
1186
$ sku = 'sku ' ;
@@ -1260,8 +1261,8 @@ public function testValidateRowValidateNewProductTypeAddRowErrorCall(
1260
1261
}
1261
1262
1262
1263
/**
1263
- * @return void
1264
- */
1264
+ * @return void
1265
+ */
1265
1266
public function testValidateRowValidateNewProductTypeGetNewSkuCall (): void
1266
1267
{
1267
1268
$ sku = 'sku ' ;
@@ -1307,8 +1308,8 @@ public function testValidateRowValidateNewProductTypeGetNewSkuCall(): void
1307
1308
}
1308
1309
1309
1310
/**
1310
- * @return void
1311
- */
1311
+ * @return void
1312
+ */
1312
1313
public function testValidateDefaultScopeNotValidAttributesResetSku (): void
1313
1314
{
1314
1315
$ this ->validator ->expects ($ this ->once ())->method ('isAttributeValid ' )->willReturn (false );
@@ -1320,8 +1321,8 @@ public function testValidateDefaultScopeNotValidAttributesResetSku(): void
1320
1321
}
1321
1322
1322
1323
/**
1323
- * @return void
1324
- */
1324
+ * @return void
1325
+ */
1325
1326
public function testValidateRowSetAttributeSetCodeIntoRowData (): void
1326
1327
{
1327
1328
$ sku = 'sku ' ;
@@ -1371,8 +1372,8 @@ public function testValidateRowSetAttributeSetCodeIntoRowData(): void
1371
1372
}
1372
1373
1373
1374
/**
1374
- * @return void
1375
- */
1375
+ * @return void
1376
+ */
1376
1377
public function testValidateValidateOptionEntity (): void
1377
1378
{
1378
1379
$ sku = 'sku ' ;
@@ -1418,8 +1419,8 @@ public function testGetImagesFromRow($rowData, $expectedResult): void
1418
1419
}
1419
1420
1420
1421
/**
1421
- * @return void
1422
- */
1422
+ * @return void
1423
+ */
1423
1424
public function testParseAttributesWithoutWrappedValuesWillReturnsLowercasedAttributeCodes (): void
1424
1425
{
1425
1426
$ attributesData = 'PARAM1=value1,param2=value2 ' ;
@@ -1439,8 +1440,8 @@ public function testParseAttributesWithoutWrappedValuesWillReturnsLowercasedAttr
1439
1440
}
1440
1441
1441
1442
/**
1442
- * @return void
1443
- */
1443
+ * @return void
1444
+ */
1444
1445
public function testParseAttributesWithWrappedValuesWillReturnsLowercasedAttributeCodes (): void
1445
1446
{
1446
1447
$ attribute1 = $ this ->getMockBuilder (AbstractAttribute::class)->disableOriginalConstructor ()
0 commit comments