File tree 1 file changed +14
-1
lines changed
dev/tests/integration/testsuite/Magento/Translation/Model/Js
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ protected function setUp()
43
43
$ objectManager ->addSharedInstance ($ viewFileSystem , FileSystem::class);
44
44
$ translator = $ objectManager ->create (Translate::class);
45
45
$ objectManager ->addSharedInstance ($ translator , Translate::class);
46
- $ areaList = $ objectManager -> create (AreaList::class);
46
+ $ areaList = $ this -> getMockBuilder (AreaList::class)-> disableOriginalConstructor ()-> getMock ( );
47
47
$ this ->origRenderer = Phrase::getRenderer ();
48
48
Phrase::setRenderer (
49
49
$ objectManager ->get (RendererInterface::class)
@@ -162,6 +162,19 @@ public function contentForTranslateDataProvider()
162
162
'Set unique country-state combinations within the same fixed product tax. ' +
163
163
'Verify the combinations and try again.'
164
164
)
165
+ i18n
166
+ ],
167
+ 'checkAvoidMatchingPhtml ' => [
168
+ <<<i18n
169
+ globalMessageList.addErrorMessage({
170
+ message: \$t(<?= /* @noEscape */ json_encode( \$params['error_msg'])?>)
171
+ });
172
+ i18n
173
+ ,
174
+ <<<i18n
175
+ globalMessageList.addErrorMessage({
176
+ message: \$t(<?= /* @noEscape */ json_encode( \$params['error_msg'])?>)
177
+ });
165
178
i18n
166
179
]
167
180
];
You can’t perform that action at this time.
0 commit comments