Commit test

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5494 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
mariano.iglesias 2007-08-06 14:59:15 +00:00
parent e4b57ef80f
commit b948a9c17e

View file

@ -36,6 +36,7 @@ class TestDispatcher extends Dispatcher {
$classVars = get_object_vars($controller); $classVars = get_object_vars($controller);
if ($missingAction && in_array('scaffold', array_keys($classVars))) { if ($missingAction && in_array('scaffold', array_keys($classVars))) {
uses('controller'. DS . 'scaffold'); uses('controller'. DS . 'scaffold');
return new Scaffold($controller, $params); return new Scaffold($controller, $params);
} elseif ($missingAction && !in_array('scaffold', array_keys($classVars))) { } elseif ($missingAction && !in_array('scaffold', array_keys($classVars))) {
return $this->cakeError('missingAction', array( return $this->cakeError('missingAction', array(