Skip to content

Commit edf818a

Browse files
author
vpaladiychuk
committed
MAGETWO-2204: "HEADERS ALREADY SENT" When Controller Action Outputs Directly
1 parent 1650b01 commit edf818a

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ public function testExecuteBackupFound()
5454
$this->backup->expects($this->once())->method('getSize')->willReturn($size);
5555
$this->backup->expects($this->once())->method('output')->willReturn($output);
5656

57-
$this->request->expects($this->at(0))->method('getParam')->with('time')->willReturn($time);
58-
$this->request->expects($this->at(1))->method('getParam')->with('type')->willReturn($type);
57+
$this->request->expects($this->any())->method('getParam')
58+
->will($this->returnValueMap([['time', null, $time], ['type', null, $type]]));
5959

6060
$this->backupModelFactory->expects($this->once())->method('create')->with($time, $type)
6161
->willReturn($this->backup);

0 commit comments

Comments
 (0)