Skip to content

Commit

Permalink
If there are is more than one theme, the test will hang waiting for t…
Browse files Browse the repository at this point in the history
…he user to select the theme to use
  • Loading branch information
AD7six committed Aug 18, 2009
1 parent 34b6e18 commit ce8dd03
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cake/tests/cases/console/libs/tasks/view.test.php
Expand Up @@ -33,13 +33,11 @@
ob_end_clean();
}


require_once CAKE . 'console' . DS . 'libs' . DS . 'tasks' . DS . 'view.php';
require_once CAKE . 'console' . DS . 'libs' . DS . 'tasks' . DS . 'controller.php';
require_once CAKE . 'console' . DS . 'libs' . DS . 'tasks' . DS . 'template.php';
require_once CAKE . 'console' . DS . 'libs' . DS . 'tasks' . DS . 'project.php';


Mock::generatePartial(
'ShellDispatcher', 'TestViewTaskMockShellDispatcher',
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment')
Expand Down Expand Up @@ -120,6 +118,8 @@ class ViewTaskTest extends CakeTestCase {
/**
* startTest method
*
* Ensure that the default theme is used
*
* @return void
* @access public
*/
Expand All @@ -132,6 +132,7 @@ function startTest() {
$this->Task->Controller =& new ViewTaskMockControllerTask();
$this->Task->Project =& new ViewTaskMockProjectTask();
$this->Task->path = TMP;
$this->Task->Template->params['theme'] = 'default';
}

/**
Expand Down

0 comments on commit ce8dd03

Please sign in to comment.