|
|
@@ -441,7 +441,6 @@ class ShellDispatcherTest extends CakeTestCase {
|
|
|
$Mock = $this->getMock('Shell', array(), array(), 'MockWithMainShell');
|
|
|
|
|
|
$Mock->expects($this->once())->method('initialize');
|
|
|
- $Mock->expects($this->once())->method('loadTasks');
|
|
|
$Mock->expects($this->once())->method('runCommand')
|
|
|
->with(null, array())
|
|
|
->will($this->returnValue(true));
|
|
|
@@ -467,7 +466,6 @@ class ShellDispatcherTest extends CakeTestCase {
|
|
|
$this->mockObjects[] = $Shell;
|
|
|
|
|
|
$Shell->expects($this->once())->method('initialize');
|
|
|
- $Shell->expects($this->once())->method('loadTasks');
|
|
|
$Shell->expects($this->once())->method('runCommand')
|
|
|
->with('initdb', array('initdb'))
|
|
|
->will($this->returnValue(true));
|
|
|
@@ -491,7 +489,6 @@ class ShellDispatcherTest extends CakeTestCase {
|
|
|
$Shell = $this->getMock('Object', $methods, array(), 'MockWithMainNotAShell');
|
|
|
|
|
|
$Shell->expects($this->never())->method('initialize');
|
|
|
- $Shell->expects($this->never())->method('loadTasks');
|
|
|
$Shell->expects($this->once())->method('startup');
|
|
|
$Shell->expects($this->once())->method('main')->will($this->returnValue(true));
|
|
|
$Dispatcher->TestShell = $Shell;
|
|
|
@@ -524,7 +521,6 @@ class ShellDispatcherTest extends CakeTestCase {
|
|
|
$Shell = $this->getMock('Object', $methods, array(&$Dispatcher), 'MockWithoutMainNotAShell');
|
|
|
|
|
|
$Shell->expects($this->never())->method('initialize');
|
|
|
- $Shell->expects($this->never())->method('loadTasks');
|
|
|
$Shell->expects($this->once())->method('startup');
|
|
|
$Shell->expects($this->once())->method('main')->will($this->returnValue(true));
|
|
|
$Dispatcher->TestShell = $Shell;
|