Skip to content
Permalink
Browse files

load app classes automatically for plugins

Otherwise baking a test for a plugin model (example) fails
  • Loading branch information...
AD7six committed May 10, 2012
1 parent 2c1b5d9 commit 08c3008874089c836e1361c556f95019f800aa9f
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/Cake/Console/Command/Task/TestTask.php
@@ -241,6 +241,12 @@ public function typeCanDetectFixtures($type) {
*/
public function isLoadableClass($package, $class) {
App::uses($class, $package);
list($plugin, $ns) = pluginSplit($package);
if ($plugin) {
App::uses("{$plugin}AppController", $package);
App::uses("{$plugin}AppModel", $package);
App::uses("{$plugin}AppHelper", $package);
}
return class_exists($class);
}

0 comments on commit 08c3008

Please sign in to comment.
You can’t perform that action at this time.