Skip to content

Commit d68fe43

Browse files
MAGETWO-70599: Email validation causes error in checkout
- Fix integration test comments
1 parent a0e2f0d commit d68fe43

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

dev/tests/integration/testsuite/Magento/Translation/Model/Js/PreProcessorTest.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected function setUp()
4343
$objectManager->addSharedInstance($viewFileSystem, FileSystem::class);
4444
$translator = $objectManager->create(Translate::class);
4545
$objectManager->addSharedInstance($translator, Translate::class);
46-
$areaList = $objectManager->create(AreaList::class);
46+
$areaList = $this->getMockBuilder(AreaList::class)->disableOriginalConstructor()->getMock();
4747
$this->origRenderer = Phrase::getRenderer();
4848
Phrase::setRenderer(
4949
$objectManager->get(RendererInterface::class)
@@ -162,6 +162,19 @@ public function contentForTranslateDataProvider()
162162
'Set unique country-state combinations within the same fixed product tax. ' +
163163
'Verify the combinations and try again.'
164164
)
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+
});
165178
i18n
166179
]
167180
];

0 commit comments

Comments
 (0)