Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit fb173bb

Browse files
authored
MAGETWO-80778: Delete CallExit function for After plugin logic execution 2.2-develop [BackPort] #11200
2 parents 850b9e5 + 9699f07 commit fb173bb

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
@@ -235,7 +235,7 @@ private function getModel()
235235
private function getModelMock()
236236
{
237237
$modelMock = $this->getMockBuilder(\Magento\Framework\App\Response\Http\FileFactory::class)
238-
->setMethods(['callExit'])
238+
->setMethods(null)
239239
->setConstructorArgs(
240240
[
241241
'response' => $this->responseMock,

0 commit comments

Comments
 (0)