Skip to content

Commit

Permalink
#29315: \Magento\Config\Model\Config\Source\Email\Template::toOptionA…
Browse files Browse the repository at this point in the history
…rray throws error when setPath() is not called first

- Fix formatting for static tests
  • Loading branch information
guidance-automotan committed Jul 30, 2020
1 parent e786d51 commit e0972bf
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,12 @@ public function testToOptionArrayWithoutPath()
$this->never()
)->method(
'getTemplateLabel'
)->with('')
->willThrowException(new \UnexpectedValueException("Email template '' is not defined."));
)->with(
''
)
->willThrowException(
new \UnexpectedValueException("Email template '' is not defined.")
);

$expectedResult = [
[
Expand All @@ -146,4 +150,5 @@ public function testToOptionArrayWithoutPath()
];

$this->assertEquals($expectedResult, $this->_model->toOptionArray());
}}
}
}

0 comments on commit e0972bf

Please sign in to comment.