From e0972bf2ac019a1b4645f2aaa7ac2e6016859fe5 Mon Sep 17 00:00:00 2001 From: Will Wright Date: Wed, 29 Jul 2020 22:15:00 -0700 Subject: [PATCH] magento/magento2#29315: \Magento\Config\Model\Config\Source\Email\Template::toOptionArray throws error when setPath() is not called first - Fix formatting for static tests --- .../Unit/Model/Config/Source/Email/TemplateTest.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/code/Magento/Config/Test/Unit/Model/Config/Source/Email/TemplateTest.php b/app/code/Magento/Config/Test/Unit/Model/Config/Source/Email/TemplateTest.php index 74ab4baa4e990..9b531280f66c6 100644 --- a/app/code/Magento/Config/Test/Unit/Model/Config/Source/Email/TemplateTest.php +++ b/app/code/Magento/Config/Test/Unit/Model/Config/Source/Email/TemplateTest.php @@ -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 = [ [ @@ -146,4 +150,5 @@ public function testToOptionArrayWithoutPath() ]; $this->assertEquals($expectedResult, $this->_model->toOptionArray()); - }} + } +}