mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 19:38:26 +00:00
If there are is more than one theme, the test will hang waiting for the user to select the theme to use
This commit is contained in:
parent
34b6e18e8d
commit
ce8dd039da
1 changed files with 3 additions and 2 deletions
|
@ -33,13 +33,11 @@ if (!class_exists('ShellDispatcher')) {
|
||||||
ob_end_clean();
|
ob_end_clean();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
require_once CAKE . 'console' . DS . 'libs' . DS . 'tasks' . DS . 'view.php';
|
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 . 'controller.php';
|
||||||
require_once CAKE . 'console' . DS . 'libs' . DS . 'tasks' . DS . 'template.php';
|
require_once CAKE . 'console' . DS . 'libs' . DS . 'tasks' . DS . 'template.php';
|
||||||
require_once CAKE . 'console' . DS . 'libs' . DS . 'tasks' . DS . 'project.php';
|
require_once CAKE . 'console' . DS . 'libs' . DS . 'tasks' . DS . 'project.php';
|
||||||
|
|
||||||
|
|
||||||
Mock::generatePartial(
|
Mock::generatePartial(
|
||||||
'ShellDispatcher', 'TestViewTaskMockShellDispatcher',
|
'ShellDispatcher', 'TestViewTaskMockShellDispatcher',
|
||||||
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment')
|
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment')
|
||||||
|
@ -120,6 +118,8 @@ class ViewTaskTest extends CakeTestCase {
|
||||||
/**
|
/**
|
||||||
* startTest method
|
* startTest method
|
||||||
*
|
*
|
||||||
|
* Ensure that the default theme is used
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
|
@ -132,6 +132,7 @@ class ViewTaskTest extends CakeTestCase {
|
||||||
$this->Task->Controller =& new ViewTaskMockControllerTask();
|
$this->Task->Controller =& new ViewTaskMockControllerTask();
|
||||||
$this->Task->Project =& new ViewTaskMockProjectTask();
|
$this->Task->Project =& new ViewTaskMockProjectTask();
|
||||||
$this->Task->path = TMP;
|
$this->Task->path = TMP;
|
||||||
|
$this->Task->Template->params['theme'] = 'default';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue