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
This commit is contained in:
AD7six 2012-05-25 13:09:52 +02:00
parent 6725a30fe2
commit af4a2efc33

View file

@ -390,6 +390,7 @@ class TestTask extends BakeTask {
$models = $subject->uses;
}
foreach ($models as $model) {
list($plugin, $model) = pluginSplit($model);
$this->_processModel($subject->{$model});
}
}