|
|
@@ -34,7 +34,7 @@ class TestsuiteShellTest extends CakeTestCase {
|
|
|
|
|
|
$this->Shell = $this->getMock(
|
|
|
'TestsuiteShell',
|
|
|
- array('in', 'out', 'hr', 'help', 'error', 'err', '_stop', 'initialize', 'run', 'clear'),
|
|
|
+ array('in', 'out', 'hr', 'help', 'error', 'err', '_stop', 'initialize', '_run', 'clear'),
|
|
|
array($out, $out, $in)
|
|
|
);
|
|
|
$this->Shell->OptionParser = $this->getMock('ConsoleOptionParser', array(), array(null, false));
|
|
|
@@ -80,7 +80,7 @@ class TestsuiteShellTest extends CakeTestCase {
|
|
|
->with(__d('cake_console', 'What test case would you like to run?'), null, 'q')
|
|
|
->will($this->returnValue('1'));
|
|
|
|
|
|
- $this->Shell->expects($this->once())->method('run');
|
|
|
+ $this->Shell->expects($this->once())->method('_run');
|
|
|
$this->Shell->available();
|
|
|
$this->assertEquals($this->Shell->args, array('core', 'AllBehaviors'));
|
|
|
}
|
|
|
@@ -95,7 +95,7 @@ class TestsuiteShellTest extends CakeTestCase {
|
|
|
$this->Shell->args = array('core', 'Basics');
|
|
|
$this->Shell->params = array('filter' => 'myFilter', 'colors' => true, 'verbose' => true);
|
|
|
|
|
|
- $this->Shell->expects($this->once())->method('run')
|
|
|
+ $this->Shell->expects($this->once())->method('_run')
|
|
|
->with(
|
|
|
array('app' => false, 'plugin' => null, 'core' => true, 'output' => 'text', 'case' => 'Basics'),
|
|
|
array('--filter', 'myFilter', '--colors', '--verbose')
|