@@ -438,15 +438,15 @@ public function testAfterImportData()
438
438
[$ this ->products [0 ][ImportProduct::COL_SKU ]],
439
439
[$ this ->products [1 ][ImportProduct::COL_SKU ]]
440
440
)
441
- ->will ($ this ->onConsecutiveCalls ($ newSku [0 ], $ newSku [1 ]));
441
+ ->will ($ this ->onConsecutiveCalls ($ newSku [0 ], $ newSku [1 ]));
442
442
$ this ->importProduct
443
443
->expects ($ this ->exactly ($ productsCount ))
444
444
->method ('getProductCategories ' )
445
445
->withConsecutive (
446
446
[$ this ->products [0 ][ImportProduct::COL_SKU ]],
447
447
[$ this ->products [1 ][ImportProduct::COL_SKU ]]
448
- )->willReturn ([]);
449
- $ getProductWebsitesCallsCount = $ productsCount* 2 ;
448
+ )->willReturn ([]);
449
+ $ getProductWebsitesCallsCount = $ productsCount * 2 ;
450
450
$ this ->importProduct
451
451
->expects ($ this ->exactly ($ getProductWebsitesCallsCount ))
452
452
->method ('getProductWebsites ' )
@@ -529,43 +529,43 @@ public function testAfterImportData()
529
529
],
530
530
[
531
531
' AND entity_id = ?) ' ,
532
- $ newSku [0 ]['entity_id ' ],
533
- ],
534
- [
535
- '(store_id = ? ' ,
536
- $ storeIds [0 ],
537
- ],
538
- [
539
- ' AND entity_id = ?) ' ,
540
- $ newSku [1 ]['entity_id ' ],
532
+ $ newSku [0 ]['entity_id ' ],
533
+ ],
534
+ [
535
+ '(store_id = ? ' ,
536
+ $ storeIds [0 ],
537
+ ],
538
+ [
539
+ ' AND entity_id = ?) ' ,
540
+ $ newSku [1 ]['entity_id ' ],
541
541
]
542
542
);
543
- $ this ->connection
544
- ->expects ($ this ->once ())
545
- ->method ('fetchAll ' )
546
- ->willReturn ([]);
547
- $ this ->select ->expects ($ this ->any ())->method ('from ' )->willReturnSelf ();
548
- $ this ->select ->expects ($ this ->any ())->method ('where ' )->willReturnSelf ();
549
-
550
- $ this ->urlFinder ->expects ($ this ->any ())->method ('findAllByData ' )->willReturn ([]);
551
-
552
- $ this ->productUrlPathGenerator ->expects ($ this ->any ())->method ('getUrlPathWithSuffix ' )
553
- ->willReturn ('urlPathWithSuffix ' );
554
- $ this ->productUrlPathGenerator ->expects ($ this ->any ())->method ('getUrlPath ' )
555
- ->willReturn ('urlPath ' );
556
- $ this ->productUrlPathGenerator ->expects ($ this ->any ())->method ('getCanonicalUrlPath ' )
557
- ->willReturn ('canonicalUrlPath ' );
558
-
559
- $ this ->urlRewrite ->expects ($ this ->any ())->method ('setStoreId ' )->willReturnSelf ();
560
- $ this ->urlRewrite ->expects ($ this ->any ())->method ('setEntityId ' )->willReturnSelf ();
561
- $ this ->urlRewrite ->expects ($ this ->any ())->method ('setEntityType ' )->willReturnSelf ();
562
- $ this ->urlRewrite ->expects ($ this ->any ())->method ('setRequestPath ' )->willReturnSelf ();
563
- $ this ->urlRewrite ->expects ($ this ->any ())->method ('setTargetPath ' )->willReturnSelf ();
564
- $ this ->urlRewrite ->expects ($ this ->any ())->method ('getTargetPath ' )->willReturn ('targetPath ' );
565
- $ this ->urlRewrite ->expects ($ this ->any ())->method ('getStoreId ' )
566
- ->willReturnOnConsecutiveCalls (0 , 'not global ' );
567
-
568
- $ this ->urlRewriteFactory ->expects ($ this ->any ())->method ('create ' )->willReturn ($ this ->urlRewrite );
543
+ $ this ->connection
544
+ ->expects ($ this ->once ())
545
+ ->method ('fetchAll ' )
546
+ ->willReturn ([]);
547
+ $ this ->select ->expects ($ this ->any ())->method ('from ' )->willReturnSelf ();
548
+ $ this ->select ->expects ($ this ->any ())->method ('where ' )->willReturnSelf ();
549
+
550
+ $ this ->urlFinder ->expects ($ this ->any ())->method ('findAllByData ' )->willReturn ([]);
551
+
552
+ $ this ->productUrlPathGenerator ->expects ($ this ->any ())->method ('getUrlPathWithSuffix ' )
553
+ ->willReturn ('urlPathWithSuffix ' );
554
+ $ this ->productUrlPathGenerator ->expects ($ this ->any ())->method ('getUrlPath ' )
555
+ ->willReturn ('urlPath ' );
556
+ $ this ->productUrlPathGenerator ->expects ($ this ->any ())->method ('getCanonicalUrlPath ' )
557
+ ->willReturn ('canonicalUrlPath ' );
558
+
559
+ $ this ->urlRewrite ->expects ($ this ->any ())->method ('setStoreId ' )->willReturnSelf ();
560
+ $ this ->urlRewrite ->expects ($ this ->any ())->method ('setEntityId ' )->willReturnSelf ();
561
+ $ this ->urlRewrite ->expects ($ this ->any ())->method ('setEntityType ' )->willReturnSelf ();
562
+ $ this ->urlRewrite ->expects ($ this ->any ())->method ('setRequestPath ' )->willReturnSelf ();
563
+ $ this ->urlRewrite ->expects ($ this ->any ())->method ('setTargetPath ' )->willReturnSelf ();
564
+ $ this ->urlRewrite ->expects ($ this ->any ())->method ('getTargetPath ' )->willReturn ('targetPath ' );
565
+ $ this ->urlRewrite ->expects ($ this ->any ())->method ('getStoreId ' )
566
+ ->willReturnOnConsecutiveCalls (0 , 'not global ' );
567
+
568
+ $ this ->urlRewriteFactory ->expects ($ this ->any ())->method ('create ' )->willReturn ($ this ->urlRewrite );
569
569
570
570
$ productUrls = [
571
571
'targetPath-0 ' => $ this ->urlRewrite ,
0 commit comments