Skip to content
Snippets Groups Projects
Commit 7e059334 authored by vtymchynskyi's avatar vtymchynskyi
Browse files

MAGETWO-35385: Fatal error when trying to send notify customer by email about shipment

parent 588ca203
Branches
No related merge requests found
......@@ -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
);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment