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
107
107
$ storeMock ->expects ($ this ->any ())
108
108
->method ('getCode ' )
109
109
->willReturn ('storeCode ' );
110
+ $ storeMock ->expects ($ this ->any ())->method ('getId ' )->willReturn (1 );
110
111
$ urlBuilderMock = $ this ->getMockForAbstractClass (UrlInterface::class);
111
112
$ urlBuilderMock ->expects ($ this ->any ())
112
113
->method ('getBaseUrl ' )
@@ -130,7 +131,7 @@ protected function setUp(): void
130
131
131
132
public function testGetTemplateFile ()
132
133
{
133
- $ params = ['module ' => 'Fixture_Module ' , 'area ' => 'frontend ' , 'store_id ' => null ];
134
+ $ params = ['module ' => 'Fixture_Module ' , 'area ' => 'frontend ' , 'store_id ' => 1 ];
134
135
$ this ->resolver ->expects ($ this ->once ())->method ('getTemplateFileName ' )->with ('template.phtml ' , $ params );
135
136
$ this ->block ->getTemplateFile ();
136
137
}
You can’t perform that action at this time.
0 commit comments