@@ -1242,7 +1242,7 @@ public function testValidateRowValidateExistingProductTypeAddErrorRowCall(): voi
1242
1242
],
1243
1243
];
1244
1244
$ importProduct = $ this ->createModelMockWithErrorAggregator (
1245
- ['addRowError ' , 'getOptionEntity ' ],
1245
+ ['addRowError ' , 'getOptionEntity ' , ' getNewSku ' ],
1246
1246
['isRowInvalid ' => true ]
1247
1247
);
1248
1248
@@ -1300,7 +1300,7 @@ public function testValidateRowValidateNewProductTypeAddRowErrorCall(
1300
1300
$ sku => null
1301
1301
];
1302
1302
$ importProduct = $ this ->createModelMockWithErrorAggregator (
1303
- ['addRowError ' , 'getOptionEntity ' ],
1303
+ ['addRowError ' , 'getOptionEntity ' , ' getNewSku ' ],
1304
1304
['isRowInvalid ' => true ]
1305
1305
);
1306
1306
@@ -1356,7 +1356,7 @@ public function testValidateRowValidateNewProductTypeGetNewSkuCall(): void
1356
1356
$ this ->setPropertyValue ($ importProduct , '_productTypeModels ' , $ _productTypeModels );
1357
1357
$ this ->setPropertyValue ($ importProduct , '_attrSetNameToId ' , $ _attrSetNameToId );
1358
1358
1359
- $ this ->skuProcessor ->expects ($ this ->once ( ))->method ('getNewSku ' )->willReturn (null );
1359
+ $ this ->skuProcessor ->expects ($ this ->exactly ( 2 ))->method ('getNewSku ' )->willReturn (null );
1360
1360
$ this ->skuProcessor ->expects ($ this ->once ())->method ('addNewSku ' )->with ($ sku , $ expectedData );
1361
1361
$ this ->setPropertyValue ($ importProduct , 'skuProcessor ' , $ this ->skuProcessor );
1362
1362
$ this ->setPrivatePropertyValue ($ importProduct , 'skuStorage ' , $ this ->skuStorageMock );
0 commit comments