Skip to content

Commit 62f4a8f

Browse files
author
vpaladiychuk
committed
MAGETWO-2204: "HEADERS ALREADY SENT" When Controller Action Outputs Directly
1 parent 711e201 commit 62f4a8f

File tree

1 file changed

+7
-1
lines changed
  • dev/tests/unit/testsuite/Magento/Backup/Controller/Adminhtml/Index

1 file changed

+7
-1
lines changed

dev/tests/unit/testsuite/Magento/Backup/Controller/Adminhtml/Index/DownloadTest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,13 @@ public function testExecuteBackupFound()
5656
$resultRaw = $this->getMock('\Magento\Framework\Controller\Result\Raw', [], [], '', false);
5757
$resultRaw->expects($this->once())->method('setContents')->with($output);
5858

59-
$resultRawFactory = $this->getMock('\Magento\Framework\Controller\Result\RawFactory', [], [], '', false);
59+
$resultRawFactory = $this->getMock(
60+
'\Magento\Framework\Controller\Result\RawFactory',
61+
['create'],
62+
[],
63+
'',
64+
false
65+
);
6066
$resultRawFactory->expects($this->once())->method('create')->will($this->returnValue($resultRaw));
6167

6268
$context = $this->getMock('\Magento\Backend\App\Action\Context', [], [], '', false);

0 commit comments

Comments
 (0)