File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
lib/internal/Magento/Framework/View Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public function getViewConfig(array $params = [])
62
62
if (isset ($ params ['themeModel ' ])) {
63
63
/** @var \Magento\Framework\View\Design\ThemeInterface $currentTheme */
64
64
$ currentTheme = $ params ['themeModel ' ];
65
- $ key = $ currentTheme ->getCode ();
65
+ $ key = $ currentTheme ->getFullPath ();
66
66
if (isset ($ this ->viewConfigs [$ key ])) {
67
67
return $ this ->viewConfigs [$ key ];
68
68
}
Original file line number Diff line number Diff line change @@ -40,17 +40,17 @@ protected function setUp()
40
40
41
41
public function testGetViewConfig ()
42
42
{
43
- $ themeCode = 2 ;
43
+ $ themeCode = ' area/theme ' ;
44
44
45
45
$ themeMock = $ this ->getMock (
46
46
\Magento \Theme \Model \Theme::class,
47
- ['getCode ' ],
47
+ ['getFullPath ' ],
48
48
[],
49
49
'' ,
50
50
false
51
51
);
52
52
$ themeMock ->expects ($ this ->atLeastOnce ())
53
- ->method ('getCode ' )
53
+ ->method ('getFullPath ' )
54
54
->will ($ this ->returnValue ($ themeCode ));
55
55
$ params = [
56
56
'themeModel ' => $ themeMock ,
You can’t perform that action at this time.
0 commit comments