Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,13 @@ public function create(
if (!empty($content['rm'])) {
$dir->delete($file);
}
$this->callExit();
}
return $this->_response;
}

/**
* Call exit
*
* @deprecated Use of exit language construct is discouraged.
* @return void
* @SuppressWarnings(PHPMD.ExitExpression)
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,12 @@ private function getModel()
/**
* Get model mock
*
* @return \Magento\Framework\App\Response\Http\FileFactory | \PHPUnit\Framework_MockObject_MockBuilder
* @return \Magento\Framework\App\Response\Http\FileFactory | \PHPUnit_Framework_MockObject_MockObject
*/
private function getModelMock()
{
$modelMock = $this->getMockBuilder(\Magento\Framework\App\Response\Http\FileFactory::class)
->setMethods(['callExit'])
->setMethods(null)
->setConstructorArgs(
[
'response' => $this->responseMock,
Expand Down