Skip to content

Commit 7e05933

Browse files
author
vtymchynskyi
committed
MAGETWO-35385: Fatal error when trying to send notify customer by email about shipment
1 parent 588ca20 commit 7e05933

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

app/code/Magento/Shipping/Test/Unit/Controller/Adminhtml/Order/Shipment/AddCommentTest.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,13 @@ protected function setUp()
102102
'',
103103
false
104104
);
105+
$this->resultLayoutFactoryMock = $this->getMock(
106+
'Magento\Framework\View\Result\LayoutFactory',
107+
[],
108+
[],
109+
'',
110+
false
111+
);
105112

106113
$this->resultPageMock = $this->getMockBuilder('Magento\Framework\View\Result\Page')
107114
->disableOriginalConstructor()
@@ -153,7 +160,8 @@ protected function setUp()
153160
$this->controller = new \Magento\Shipping\Controller\Adminhtml\Order\Shipment\AddComment(
154161
$contextMock,
155162
$this->shipmentLoaderMock,
156-
$this->shipmentSenderMock
163+
$this->shipmentSenderMock,
164+
$this->resultLayoutFactoryMock
157165
);
158166
}
159167

0 commit comments

Comments
 (0)