Skip to content

Commit 903ff8d

Browse files
author
Cari Spruiell
committed
MAGETWO-54479: [Email] Change Messaging for "502 Bad Gateway" error when "New Account" email is initiated with custom templates.
- updated tests
1 parent c2ef919 commit 903ff8d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@ protected function setUp()
3737
);
3838
}
3939

40+
//@codingStandardsIgnoreStart
4041
/**
4142
* @expectedException \Magento\Framework\Exception\LocalizedException
42-
* @expectedExceptionMessage Incorrect configuration for email_header_template. Template body has a reference to
43+
* @expectedExceptionMessage The email_header_template contains an incorrect configuration. The template has a reference to itself. Either remove or change the reference.
4344
*/
45+
//@codingStandardsIgnoreEnd
4446
public function testValidateHasRecursiveReference()
4547
{
4648
$fieldConfig = [

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ protected function setUp()
2929
$this->model = $objectManager->get('Magento\Theme\Model\Design\Config\Validator');
3030
}
3131

32+
//@codingStandardsIgnoreStart
3233
/**
3334
* @magentoDataFixture Magento/Email/Model/_files/email_template.php
3435
* @expectedException \Magento\Framework\Exception\LocalizedException
35-
* @expectedExceptionMessage Incorrect configuration for email_header_template. Template body has a reference to
36+
* @expectedExceptionMessage The email_header_template contains an incorrect configuration. The template has a reference to itself. Either remove or change the reference.
3637
*/
38+
//@codingStandardsIgnoreEnd
3739
public function testValidateHasRecursiveReference()
3840
{
3941
$fieldConfig = [

0 commit comments

Comments
 (0)