File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed
lib/internal/Magento/Framework/App Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -99,19 +99,7 @@ public function create(
99
99
if (!empty ($ content ['rm ' ])) {
100
100
$ dir ->delete ($ file );
101
101
}
102
- $ this ->callExit ();
103
102
}
104
103
return $ this ->_response ;
105
104
}
106
-
107
- /**
108
- * Call exit
109
- *
110
- * @return void
111
- * @SuppressWarnings(PHPMD.ExitExpression)
112
- */
113
- protected function callExit ()
114
- {
115
- exit (0 );
116
- }
117
105
}
Original file line number Diff line number Diff line change @@ -230,12 +230,12 @@ private function getModel()
230
230
/**
231
231
* Get model mock
232
232
*
233
- * @return \Magento\Framework\App\Response\Http\FileFactory | \PHPUnit\Framework_MockObject_MockBuilder
233
+ * @return \Magento\Framework\App\Response\Http\FileFactory | \PHPUnit_Framework_MockObject_MockObject
234
234
*/
235
235
private function getModelMock ()
236
236
{
237
237
$ modelMock = $ this ->getMockBuilder (\Magento \Framework \App \Response \Http \FileFactory::class)
238
- ->setMethods ([ ' callExit ' ] )
238
+ ->setMethods (null )
239
239
->setConstructorArgs (
240
240
[
241
241
'response ' => $ this ->responseMock ,
You can’t perform that action at this time.
0 commit comments