Skip to content

Commit 38e611d

Browse files
committed
Update method to mock
1 parent c45ef12 commit 38e611d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/TestCase/Shell/ConfigReadShellTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ protected function getSUTClassName() {
203203
*/
204204
protected function initSUT($additionalMocks = []) {
205205
$defaultMocks = [
206-
'_displayHelp', 'error',
206+
'_displayHelp', 'abort',
207207
];
208208

209209
$this->io = $this->getMockBuilder('\Cake\Console\ConsoleIo')
@@ -222,7 +222,7 @@ protected function initSUT($additionalMocks = []) {
222222
->getMock();
223223

224224
$shell->expects($this->any())
225-
->method('error')
225+
->method('abort')
226226
->with($this->anything())
227227
->will($this->returnCallback([$this, 'outputCollector']));
228228
$shell->OptionParser = $this->getMockBuilder('\Cake\Console\ConsoleOptionParser')

0 commit comments

Comments
 (0)