Skip to content

Commit 7394a59

Browse files
committed
Merge remote-tracking branch 'mainline/develop' into MAGETWO-50211-changelog
2 parents eaff181 + d95c209 commit 7394a59

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

app/code/Magento/Theme/Model/Design/Config/Validator.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ public function validate(DesignConfigInterface $designConfig)
8383
if (isset($params['config_path']) && $params['config_path'] == $data['config_path']) {
8484
throw new LocalizedException(
8585
__(
86-
"Incorrect configuration for %templateName. Template body has a reference to itself",
86+
"The %templateName contains an incorrect configuration. The template has " .
87+
"a reference to itself. Either remove or change the reference.",
8788
["templateName" => $name]
8889
)
8990
);

app/code/Magento/Theme/Test/Unit/Model/Config/ValidatorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected function setUp()
3939

4040
/**
4141
* @expectedException \Magento\Framework\Exception\LocalizedException
42-
* @expectedExceptionMessage Incorrect configuration for email_header_template. Template body has a reference to
42+
* @expectedExceptionMessage The email_header_template contains an incorrect configuration. The template has a
4343
*/
4444
public function testValidateHasRecursiveReference()
4545
{

dev/tests/integration/testsuite/Magento/Theme/Model/Config/ValidatorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected function setUp()
3232
/**
3333
* @magentoDataFixture Magento/Email/Model/_files/email_template.php
3434
* @expectedException \Magento\Framework\Exception\LocalizedException
35-
* @expectedExceptionMessage Incorrect configuration for email_header_template. Template body has a reference to
35+
* @expectedExceptionMessage The email_header_template contains an incorrect configuration. The template has a
3636
*/
3737
public function testValidateHasRecursiveReference()
3838
{

0 commit comments

Comments
 (0)