File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ public function getWelcome()
5757 \Magento \Store \Model \ScopeInterface::SCOPE_STORE
5858 );
5959 }
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 );
6261 }
6362}
Original file line number Diff line number Diff line change @@ -58,13 +58,13 @@ public function testGetWelcomeDefault()
5858 {
5959 $ this ->scopeConfig ->expects ($ this ->once ())->method ('getValue ' )
6060 ->with ('design/header/welcome ' , ScopeInterface::SCOPE_STORE )
61- ->willReturn (' Welcome Message' );
61+ ->willReturn (" Message d'accueil par défaut " );
6262
6363 $ this ->escaper ->expects ($ this ->once ())
6464 ->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 " );
6767
68- $ this ->assertEquals (' Welcome Message' , $ this ->unit ->getWelcome ());
68+ $ this ->assertEquals (" Message d\'accueil par défaut " , $ this ->unit ->getWelcome ());
6969 }
7070}
You can’t perform that action at this time.
0 commit comments