Skip to content

Commit b427bce

Browse files
author
Oleksii Korshenko
authored
MAGETWO-80777: Delete CallExit function for After plugin logic execution 2.1-develop [BackPort] #11201
2 parents 0ccdb85 + b4bff97 commit b427bce

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

lib/internal/Magento/Framework/App/Response/Http/FileFactory.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -99,19 +99,7 @@ public function create(
9999
if (!empty($content['rm'])) {
100100
$dir->delete($file);
101101
}
102-
$this->callExit();
103102
}
104103
return $this->_response;
105104
}
106-
107-
/**
108-
* Call exit
109-
*
110-
* @return void
111-
* @SuppressWarnings(PHPMD.ExitExpression)
112-
*/
113-
protected function callExit()
114-
{
115-
exit(0);
116-
}
117105
}

lib/internal/Magento/Framework/App/Test/Unit/Response/Http/FileFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ private function getModelMock()
244244
{
245245
$modelMock = $this->getMock(
246246
'Magento\Framework\App\Response\Http\FileFactory',
247-
['callExit'],
247+
null,
248248
[
249249
'response' => $this->responseMock,
250250
'filesystem' => $this->fileSystemMock,

0 commit comments

Comments
 (0)