Skip to content

Commit 668694c

Browse files
authored
MAGETWO-79427: Delete CallExit function for After/Around plugin logic execution in FileFactory #11029
2 parents abf55f3 + 6c0c451 commit 668694c

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,12 @@ private function getModel()
230230
/**
231231
* Get model mock
232232
*
233-
* @return \Magento\Framework\App\Response\Http\FileFactory | \PHPUnit\Framework_MockObject_MockBuilder
233+
* @return \Magento\Framework\App\Response\Http\FileFactory | \PHPUnit_Framework_MockObject_MockObject
234234
*/
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)