From 7e0593345d4ee17302be8617211071d82bb10205 Mon Sep 17 00:00:00 2001
From: vtymchynskyi <vtymchynskyi@ebay.com>
Date: Sun, 22 Mar 2015 17:09:04 +0200
Subject: [PATCH] MAGETWO-35385:  Fatal error when trying to send notify
 customer by email about shipment

---
 .../Adminhtml/Order/Shipment/AddCommentTest.php        | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

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 80749ec0001..72b12f7f753 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
@@ -102,6 +102,13 @@ class AddCommentTest extends \PHPUnit_Framework_TestCase
             '',
             false
         );
+        $this->resultLayoutFactoryMock = $this->getMock(
+            'Magento\Framework\View\Result\LayoutFactory',
+            [],
+            [],
+            '',
+            false
+        );
 
         $this->resultPageMock = $this->getMockBuilder('Magento\Framework\View\Result\Page')
             ->disableOriginalConstructor()
@@ -153,7 +160,8 @@ class AddCommentTest extends \PHPUnit_Framework_TestCase
         $this->controller = new \Magento\Shipping\Controller\Adminhtml\Order\Shipment\AddComment(
             $contextMock,
             $this->shipmentLoaderMock,
-            $this->shipmentSenderMock
+            $this->shipmentSenderMock,
+            $this->resultLayoutFactoryMock
         );
     }
 
-- 
GitLab