Mocking out clear() on all the shell tests as it wreaks havoc on the CLI runner.

This commit is contained in:
mark_story 2010-09-20 22:41:25 -04:00
parent 6974a8752f
commit 309d08d4ef
16 changed files with 16 additions and 16 deletions

View file

@ -64,7 +64,7 @@ class AclShellTest extends CakeTestCase {
$this->Dispatcher = $this->getMock(
'ShellDispatcher',
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'dispatch')
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'dispatch', 'clear')
);
$this->Task = $this->getMock(
'AclShell',

View file

@ -50,7 +50,7 @@ class ApiShellTest extends CakeTestCase {
public function startTest() {
$this->Dispatcher = $this->getMock(
'ShellDispatcher',
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'dispatch')
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'dispatch', 'clear')
);
$this->Shell = $this->getMock(
'ApiShell',

View file

@ -61,7 +61,7 @@ class BakeShellTest extends CakeTestCase {
public function startTest() {
$this->Dispatcher = $this->getMock(
'ShellDispatcher',
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment')
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear')
);
$this->Shell = $this->getMock(
'BakeShell',

View file

@ -122,7 +122,7 @@ class SchemaShellTest extends CakeTestCase {
public function startTest() {
$this->Dispatcher = $this->getMock(
'ShellDispatcher',
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment')
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear')
);
$this->Shell = $this->getMock(
'SchemaShell',

View file

@ -116,7 +116,7 @@ class ShellTest extends CakeTestCase {
$this->Dispatcher = $this->getMock(
'ShellDispatcher',
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment')
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear')
);
$this->Shell =& new TestShell($this->Dispatcher);
}

View file

@ -78,7 +78,7 @@ class ControllerTaskTest extends CakeTestCase {
*/
public function startTest() {
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment'
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear'
));
$this->Task = $this->getMock('ControllerTask',
array('in', 'out', 'err', 'hr', 'createFile', '_stop', '_checkUnitTest'),

View file

@ -70,7 +70,7 @@ class DbConfigTaskTest extends CakeTestCase {
*/
public function startTest() {
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment'
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear'
));
$this->Task = $this->getMock('DbConfigTask',
array('in', 'out', 'err', 'hr', 'createFile', '_stop', '_checkUnitTest', '_verify'),

View file

@ -50,7 +50,7 @@ class ExtractTaskTest extends CakeTestCase {
*/
public function setUp() {
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment'
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear'
));
$this->Task =& new ExtractTask($this->Dispatcher);
}

View file

@ -56,7 +56,7 @@ class FixtureTaskTest extends CakeTestCase {
*/
public function startTest() {
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment'
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear'
));
$this->Task = $this->getMock('FixtureTask',
array('in', 'err', 'createFile', '_stop'),

View file

@ -59,7 +59,7 @@ class ModelTaskTest extends CakeTestCase {
*/
public function startTest() {
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment'
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear'
));
$this->Task = $this->getMock('ModelTask',
array('in', 'err', 'createFile', '_stop', '_checkUnitTest'),

View file

@ -55,7 +55,7 @@ class PluginTaskTest extends CakeTestCase {
*/
public function startTest() {
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment'
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear'
));
$this->Task = $this->getMock('PluginTask',
array('in', 'err', 'createFile', '_stop'),

View file

@ -51,7 +51,7 @@ class ProjectTaskTest extends CakeTestCase {
*/
public function startTest() {
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment'
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear'
));
$this->Task = $this->getMock('ProjectTask',
array('in', 'err', 'createFile', '_stop'),

View file

@ -50,7 +50,7 @@ class TemplateTaskTest extends CakeTestCase {
*/
public function startTest() {
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment'
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear'
));
$this->Task = $this->getMock('TemplateTask',
array('in', 'err', 'createFile', '_stop'),

View file

@ -249,7 +249,7 @@ class TestTaskTest extends CakeTestCase {
*/
public function startTest() {
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment'
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear'
));
$this->Task = $this->getMock('TestTask',
array('in', 'err', 'createFile', '_stop', 'isLoadableClass'),

View file

@ -232,7 +232,7 @@ class ViewTaskTest extends CakeTestCase {
*/
public function startTest() {
$this->Dispatcher = $this->getMock('ShellDispatcher', array(
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment'
'getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear'
));
$this->Task = $this->getMock('ViewTask',
array('in', 'err', 'createFile', '_stop'),

View file

@ -44,7 +44,7 @@ class TestSuiteShellTest extends CakeTestCase {
public function setUp() {
$this->Dispatcher = $this->getMock(
'ShellDispatcher',
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment')
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear')
);
$this->Shell = $this->getMock(
'TestSuiteShell',