Skip to content

Commit

Permalink
allow baking tests for controllers with uses
Browse files Browse the repository at this point in the history
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
AD7six committed May 25, 2012
1 parent 6725a30 commit af4a2ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Cake/Console/Command/Task/TestTask.php
Expand Up @@ -390,6 +390,7 @@ protected function _processController($subject) {
$models = $subject->uses;
}
foreach ($models as $model) {
list($plugin, $model) = pluginSplit($model);
$this->_processModel($subject->{$model});
}
}
Expand Down

0 comments on commit af4a2ef

Please sign in to comment.