File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ public function getWelcome()
57
57
\Magento \Store \Model \ScopeInterface::SCOPE_STORE
58
58
);
59
59
}
60
- $ this ->_data ['welcome ' ] = $ this ->escaper ->escapeQuote ($ this ->_data ['welcome ' ], true );
61
- return __ ($ this ->_data ['welcome ' ]);
60
+ return $ this ->escaper ->escapeQuote (__ ($ this ->_data ['welcome ' ])->render (), true );
62
61
}
63
62
}
Original file line number Diff line number Diff line change @@ -58,13 +58,13 @@ public function testGetWelcomeDefault()
58
58
{
59
59
$ this ->scopeConfig ->expects ($ this ->once ())->method ('getValue ' )
60
60
->with ('design/header/welcome ' , ScopeInterface::SCOPE_STORE )
61
- ->willReturn (' Welcome Message' );
61
+ ->willReturn (" Message d'accueil par défaut " );
62
62
63
63
$ this ->escaper ->expects ($ this ->once ())
64
64
->method ('escapeQuote ' )
65
- ->with (' Welcome Message' , true )
66
- ->willReturn (' Welcome Message' );
65
+ ->with (" Message d'accueil par défaut " , true )
66
+ ->willReturn (" Message d\'accueil par défaut " );
67
67
68
- $ this ->assertEquals (' Welcome Message' , $ this ->unit ->getWelcome ());
68
+ $ this ->assertEquals (" Message d\'accueil par défaut " , $ this ->unit ->getWelcome ());
69
69
}
70
70
}
You can’t perform that action at this time.
0 commit comments