From 1550d511b54d0e42bfcc364778e292016225eed7 Mon Sep 17 00:00:00 2001 From: vtymchynskyi <vtymchynskyi@ebay.com> Date: Sun, 22 Mar 2015 20:34:11 +0200 Subject: [PATCH] MAGETWO-35385: Fatal error when trying to send notify customer by email about shipment --- .../Controller/Adminhtml/Order/Shipment/AddCommentTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/Shipping/Test/Unit/Controller/Adminhtml/Order/Shipment/AddCommentTest.php b/app/code/Magento/Shipping/Test/Unit/Controller/Adminhtml/Order/Shipment/AddCommentTest.php index cf5dc73f801..4bc12ca3651 100644 --- a/app/code/Magento/Shipping/Test/Unit/Controller/Adminhtml/Order/Shipment/AddCommentTest.php +++ b/app/code/Magento/Shipping/Test/Unit/Controller/Adminhtml/Order/Shipment/AddCommentTest.php @@ -215,10 +215,12 @@ class AddCommentTest extends \PHPUnit_Framework_TestCase $layoutMock = $this->getMock('Magento\Framework\View\Layout', ['getBlock'], [], '', false); $blockMock = $this->getMock('Magento\Shipping\Block\Adminhtml\View\Comments', ['toHtml'], [], '', false); $blockMock->expects($this->once())->method('toHtml')->willReturn($result); - $layoutMock->expects($this->once())->method('getBlock')->with('shipment_comments')->willReturn($blockMock); + $layoutMock->expects($this->once())->method('getBlock') + ->with('shipment_comments')->willReturn($blockMock); $resultLayoutMock->expects($this->once())->method('getLayout')->willReturn($layoutMock); $resultLayoutMock->expects($this->once())->method('addDefaultHandle'); - $this->resultLayoutFactoryMock->expects($this->once())->method('create')->will($this->returnValue($resultLayoutMock)); + $this->resultLayoutFactoryMock->expects($this->once())->method('create') + ->will($this->returnValue($resultLayoutMock)); $this->responseMock->expects($this->once())->method('setBody')->with($result); $this->assertNull($this->controller->execute()); -- GitLab