Skip to content

Commit 1550d51

Browse files
author
vtymchynskyi
committed
MAGETWO-35385: Fatal error when trying to send notify customer by email about shipment
1 parent 552fa09 commit 1550d51

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,12 @@ public function testExecute()
215215
$layoutMock = $this->getMock('Magento\Framework\View\Layout', ['getBlock'], [], '', false);
216216
$blockMock = $this->getMock('Magento\Shipping\Block\Adminhtml\View\Comments', ['toHtml'], [], '', false);
217217
$blockMock->expects($this->once())->method('toHtml')->willReturn($result);
218-
$layoutMock->expects($this->once())->method('getBlock')->with('shipment_comments')->willReturn($blockMock);
218+
$layoutMock->expects($this->once())->method('getBlock')
219+
->with('shipment_comments')->willReturn($blockMock);
219220
$resultLayoutMock->expects($this->once())->method('getLayout')->willReturn($layoutMock);
220221
$resultLayoutMock->expects($this->once())->method('addDefaultHandle');
221-
$this->resultLayoutFactoryMock->expects($this->once())->method('create')->will($this->returnValue($resultLayoutMock));
222+
$this->resultLayoutFactoryMock->expects($this->once())->method('create')
223+
->will($this->returnValue($resultLayoutMock));
222224
$this->responseMock->expects($this->once())->method('setBody')->with($result);
223225

224226
$this->assertNull($this->controller->execute());

0 commit comments

Comments
 (0)