Skip to content

Commit

Permalink
Mocking out clear() on all the shell tests as it wreaks havoc on the …
Browse files Browse the repository at this point in the history
…CLI runner.
  • Loading branch information
markstory committed Sep 25, 2010
1 parent 6974a87 commit 309d08d
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion cake/tests/cases/console/libs/acl.test.php
Expand Up @@ -64,7 +64,7 @@ public function startTest() {

$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',
Expand Down
2 changes: 1 addition & 1 deletion cake/tests/cases/console/libs/api.test.php
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion cake/tests/cases/console/libs/bake.test.php
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion cake/tests/cases/console/libs/schema.test.php
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion cake/tests/cases/console/libs/shell.test.php
Expand Up @@ -116,7 +116,7 @@ public function setUp() {

$this->Dispatcher = $this->getMock(
'ShellDispatcher',
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment')
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment', 'clear')
);
$this->Shell =& new TestShell($this->Dispatcher);
}
Expand Down
2 changes: 1 addition & 1 deletion cake/tests/cases/console/libs/tasks/controller.test.php
Expand Up @@ -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'),
Expand Down
2 changes: 1 addition & 1 deletion cake/tests/cases/console/libs/tasks/db_config.test.php
Expand Up @@ -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'),
Expand Down
2 changes: 1 addition & 1 deletion cake/tests/cases/console/libs/tasks/extract.test.php
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion cake/tests/cases/console/libs/tasks/fixture.test.php
Expand Up @@ -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'),
Expand Down
2 changes: 1 addition & 1 deletion cake/tests/cases/console/libs/tasks/model.test.php
Expand Up @@ -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'),
Expand Down
2 changes: 1 addition & 1 deletion cake/tests/cases/console/libs/tasks/plugin.test.php
Expand Up @@ -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'),
Expand Down
2 changes: 1 addition & 1 deletion cake/tests/cases/console/libs/tasks/project.test.php
Expand Up @@ -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'),
Expand Down
2 changes: 1 addition & 1 deletion cake/tests/cases/console/libs/tasks/template.test.php
Expand Up @@ -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'),
Expand Down
2 changes: 1 addition & 1 deletion cake/tests/cases/console/libs/tasks/test.test.php
Expand Up @@ -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'),
Expand Down
2 changes: 1 addition & 1 deletion cake/tests/cases/console/libs/tasks/view.test.php
Expand Up @@ -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'),
Expand Down
2 changes: 1 addition & 1 deletion cake/tests/cases/console/libs/testsuite.test.php
Expand Up @@ -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',
Expand Down

0 comments on commit 309d08d

Please sign in to comment.