Skip to content

Commit e0972bf

Browse files
#29315: \Magento\Config\Model\Config\Source\Email\Template::toOptionArray throws error when setPath() is not called first
- Fix formatting for static tests
1 parent e786d51 commit e0972bf

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

app/code/Magento/Config/Test/Unit/Model/Config/Source/Email/TemplateTest.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,12 @@ public function testToOptionArrayWithoutPath()
131131
$this->never()
132132
)->method(
133133
'getTemplateLabel'
134-
)->with('')
135-
->willThrowException(new \UnexpectedValueException("Email template '' is not defined."));
134+
)->with(
135+
''
136+
)
137+
->willThrowException(
138+
new \UnexpectedValueException("Email template '' is not defined.")
139+
);
136140

137141
$expectedResult = [
138142
[
@@ -146,4 +150,5 @@ public function testToOptionArrayWithoutPath()
146150
];
147151

148152
$this->assertEquals($expectedResult, $this->_model->toOptionArray());
149-
}}
153+
}
154+
}

0 commit comments

Comments
 (0)