File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
lib/internal/Magento/Framework/View/Test/Unit/Element Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ protected function setUp(): void
107107 $ storeMock ->expects ($ this ->any ())
108108 ->method ('getCode ' )
109109 ->willReturn ('storeCode ' );
110+ $ storeMock ->expects ($ this ->any ())->method ('getId ' )->willReturn (1 );
110111 $ urlBuilderMock = $ this ->getMockForAbstractClass (UrlInterface::class);
111112 $ urlBuilderMock ->expects ($ this ->any ())
112113 ->method ('getBaseUrl ' )
@@ -130,7 +131,7 @@ protected function setUp(): void
130131
131132 public function testGetTemplateFile ()
132133 {
133- $ params = ['module ' => 'Fixture_Module ' , 'area ' => 'frontend ' , 'store_id ' => null ];
134+ $ params = ['module ' => 'Fixture_Module ' , 'area ' => 'frontend ' , 'store_id ' => 1 ];
134135 $ this ->resolver ->expects ($ this ->once ())->method ('getTemplateFileName ' )->with ('template.phtml ' , $ params );
135136 $ this ->block ->getTemplateFile ();
136137 }
You can’t perform that action at this time.
0 commit comments