Permalink
Browse files

allow baking tests for controllers with uses

if a controller has

	public $uses => array('MyPlugin.MyModel')

in their controller - the bake controller task will fail because `$controller->MyPlugin.MyModel`
doesn't exist
  • Loading branch information...
1 parent 6725a30 commit af4a2efc33a927020b3bab1faea46f102f8578ab @AD7six AD7six committed May 25, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Cake/Console/Command/Task/TestTask.php
@@ -390,6 +390,7 @@ protected function _processController($subject) {
$models = $subject->uses;
}
foreach ($models as $model) {
+ list($plugin, $model) = pluginSplit($model);
$this->_processModel($subject->{$model});
}
}

0 comments on commit af4a2ef

Please sign in to comment.