Skip to content

Commit 1d155b6

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

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
@@ -114,7 +114,13 @@ public function testExecuteBackupNotFound($time, $exists, $existsCount)
114114
$resultRedirect = $this->getMock('Magento\Backend\Model\View\Result\Redirect', [], [], '', false);
115115
$resultRedirect->expects($this->once())->method('setPath')->with('backup/*');
116116

117-
$resultRedirectFactory = $this->getMock('Magento\Backend\Model\View\Result\RedirectFactory', [], [], '', false);
117+
$resultRedirectFactory = $this->getMock(
118+
'Magento\Backend\Model\View\Result\RedirectFactory',
119+
['create'],
120+
[],
121+
'',
122+
false
123+
);
118124
$resultRedirectFactory->expects($this->once())->method('create')->will($this->returnValue($resultRedirect));
119125

120126
/** @var Download|\PHPUnit_Framework_MockObject_MockObject $controller */

0 commit comments

Comments
 (0)