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 80749ec0001723fc287a435a806f6988324e331b..72b12f7f753732abd0f2bb36cdf68dc097636580 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 ); }