Skip to content
This repository
Browse code

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
Andy Dawson authored May 25, 2012
1  lib/Cake/Console/Command/Task/TestTask.php
@@ -390,6 +390,7 @@ protected function _processController($subject) {
390 390
 			$models = $subject->uses;
391 391
 		}
392 392
 		foreach ($models as $model) {
  393
+			list($plugin, $model) = pluginSplit($model);
393 394
 			$this->_processModel($subject->{$model});
394 395
 		}
395 396
 	}

0 notes on commit af4a2ef

Please sign in to comment.
Something went wrong with that request. Please try again.