@@ -333,7 +333,6 @@ public function testExecuteWithExistentCustomerAndNoAddresses()
333
333
334
334
$ this ->customerDataFactoryMock ->expects ($ this ->once ())
335
335
->method ('create ' )
336
- ->with ([])
337
336
->willReturn ($ customerMock );
338
337
339
338
$ this ->customerRepositoryMock ->expects ($ this ->once ())
@@ -503,7 +502,6 @@ public function testExecuteWithNewCustomerAndNoAddresses()
503
502
504
503
$ this ->customerDataFactoryMock ->expects ($ this ->once ())
505
504
->method ('create ' )
506
- ->with ([])
507
505
->willReturn ($ customerMock );
508
506
509
507
$ this ->managementMock ->expects ($ this ->once ())
@@ -560,13 +558,12 @@ public function testExecuteWithNewCustomerAndNoAddresses()
560
558
561
559
$ this ->redirectFactoryMock ->expects ($ this ->once ())
562
560
->method ('create ' )
563
- ->with ([])
564
561
->willReturn ($ redirectMock );
565
562
566
563
$ redirectMock ->expects ($ this ->once ())
567
564
->method ('setPath ' )
568
565
->with ('customer/index ' , [])
569
- ->willReturn ( true );
566
+ ->willReturnSelf ( );
570
567
571
568
$ this ->assertEquals ($ redirectMock , $ this ->model ->execute ());
572
569
}
@@ -660,7 +657,6 @@ public function testExecuteWithNewCustomerAndValidationException()
660
657
661
658
$ this ->customerDataFactoryMock ->expects ($ this ->once ())
662
659
->method ('create ' )
663
- ->with ([])
664
660
->willReturn ($ customerMock );
665
661
666
662
$ this ->managementMock ->expects ($ this ->once ())
@@ -801,7 +797,6 @@ public function testExecuteWithNewCustomerAndLocalizedException()
801
797
802
798
$ this ->customerDataFactoryMock ->expects ($ this ->once ())
803
799
->method ('create ' )
804
- ->with ([])
805
800
->willReturn ($ customerMock );
806
801
807
802
$ this ->managementMock ->expects ($ this ->once ())
@@ -942,7 +937,6 @@ public function testExecuteWithNewCustomerAndException()
942
937
943
938
$ this ->customerDataFactoryMock ->expects ($ this ->once ())
944
939
->method ('create ' )
945
- ->with ([])
946
940
->willReturn ($ customerMock );
947
941
948
942
$ exception = new \Exception (__ ('Exception ' ));
0 commit comments