@@ -1242,7 +1242,7 @@ public function testValidateRowValidateExistingProductTypeAddErrorRowCall(): voi
12421242 ],
12431243 ];
12441244 $ importProduct = $ this ->createModelMockWithErrorAggregator (
1245- ['addRowError ' , 'getOptionEntity ' ],
1245+ ['addRowError ' , 'getOptionEntity ' , ' getNewSku ' ],
12461246 ['isRowInvalid ' => true ]
12471247 );
12481248
@@ -1300,7 +1300,7 @@ public function testValidateRowValidateNewProductTypeAddRowErrorCall(
13001300 $ sku => null
13011301 ];
13021302 $ importProduct = $ this ->createModelMockWithErrorAggregator (
1303- ['addRowError ' , 'getOptionEntity ' ],
1303+ ['addRowError ' , 'getOptionEntity ' , ' getNewSku ' ],
13041304 ['isRowInvalid ' => true ]
13051305 );
13061306
@@ -1356,7 +1356,7 @@ public function testValidateRowValidateNewProductTypeGetNewSkuCall(): void
13561356 $ this ->setPropertyValue ($ importProduct , '_productTypeModels ' , $ _productTypeModels );
13571357 $ this ->setPropertyValue ($ importProduct , '_attrSetNameToId ' , $ _attrSetNameToId );
13581358
1359- $ this ->skuProcessor ->expects ($ this ->once ( ))->method ('getNewSku ' )->willReturn (null );
1359+ $ this ->skuProcessor ->expects ($ this ->exactly ( 2 ))->method ('getNewSku ' )->willReturn (null );
13601360 $ this ->skuProcessor ->expects ($ this ->once ())->method ('addNewSku ' )->with ($ sku , $ expectedData );
13611361 $ this ->setPropertyValue ($ importProduct , 'skuProcessor ' , $ this ->skuProcessor );
13621362 $ this ->setPrivatePropertyValue ($ importProduct , 'skuStorage ' , $ this ->skuStorageMock );
0 commit comments