@@ -478,32 +478,19 @@ function ($from, $to) {
478
478
479
479
$ model = $ this ->_getModelMock (true );
480
480
481
- $ storeMock = $ this ->getMockBuilder (
482
- \Magento \Store \Model \Store::class
483
- )->setMethods (
484
- ['isFrontUrlSecure ' , 'getBaseUrl ' ]
485
- )->disableOriginalConstructor ()->getMock ();
481
+ $ storeMock = $ this ->getMockBuilder (\Magento \Store \Model \Store::class)
482
+ ->setMethods (['isFrontUrlSecure ' , 'getBaseUrl ' ])
483
+ ->disableOriginalConstructor ()
484
+ ->getMock ();
486
485
$ storeMock ->expects ($ this ->atLeastOnce ())->method ('isFrontUrlSecure ' )->willReturn (false );
487
- $ storeMock ->expects (
488
- $ this ->atLeastOnce ()
489
- )->method (
490
- 'getBaseUrl '
491
- )->with (
492
- $ this ->isType ('string ' ),
493
- false
494
- )->willReturn (
495
- 'http://store.com/ '
496
- );
497
-
498
- $ this ->_storeManagerMock ->expects (
499
- $ this ->atLeastOnce ()
500
- )->method (
501
- 'getStore '
502
- )->with (
503
- 1
504
- )->willReturn (
505
- $ storeMock
506
- );
486
+ $ storeMock ->expects ($ this ->atLeastOnce ())
487
+ ->method ('getBaseUrl ' )
488
+ ->with ($ this ->isType ('string ' ), false )
489
+ ->willReturn ('http://store.com/ ' );
490
+ $ this ->_storeManagerMock ->expects ($ this ->atLeastOnce ())
491
+ ->method ('getStore ' )
492
+ ->with (1 )
493
+ ->willReturn ($ storeMock );
507
494
508
495
return $ model ;
509
496
}
@@ -641,11 +628,9 @@ protected function _getModelConstructorArgs()
641
628
)->disableOriginalConstructor ()->getMock ();
642
629
$ cmsFactory ->expects ($ this ->any ())->method ('create ' )->will ($ this ->returnValue ($ this ->_sitemapCmsPageMock ));
643
630
644
- $ this ->_storeManagerMock = $ this ->getMockBuilder (
645
- \Magento \Store \Model \StoreManagerInterface::class
646
- )->setMethods (
647
- ['getStore ' ]
648
- )->getMockForAbstractClass ();
631
+ $ this ->_storeManagerMock = $ this ->getMockBuilder (\Magento \Store \Model \StoreManagerInterface::class)
632
+ ->setMethods (['getStore ' ])
633
+ ->getMockForAbstractClass ();
649
634
650
635
$ objectManager = new \Magento \Framework \TestFramework \Unit \Helper \ObjectManager ($ this );
651
636
$ constructArguments = $ objectManager ->getConstructArguments (
0 commit comments