Permalink
Browse files

If there are is more than one theme, the test will hang waiting for t…

…he user to select the theme to use
  • Loading branch information...
1 parent 34b6e18 commit ce8dd039da6168a3817d2e9c4e5c62633e9fd478 @AD7six AD7six committed Aug 18, 2009
Showing with 3 additions and 2 deletions.
  1. +3 −2 cake/tests/cases/console/libs/tasks/view.test.php
View
5 cake/tests/cases/console/libs/tasks/view.test.php
@@ -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')
@@ -120,6 +118,8 @@ class ViewTaskTest extends CakeTestCase {
/**
* startTest method
*
+ * Ensure that the default theme is used
+ *
* @return void
* @access public
*/
@@ -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';
}
/**

0 comments on commit ce8dd03

Please sign in to comment.