Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit af4a2efc33a927020b3bab1faea46f102f8578ab 1 parent 6725a30
@AD7six AD7six authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/Cake/Console/Command/Task/TestTask.php
View
1  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});
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.