Permalink
Browse files

Fixing loading list of tests cases for plugins broken in recent commits

  • Loading branch information...
1 parent 8d52907 commit a2f725ff76854c7f81c030984e579ffb7c517bbc @lorenzo lorenzo committed May 23, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/Cake/TestSuite/CakeTestLoader.php
@@ -58,9 +58,10 @@ protected static function _basePath($params) {
if (!CakePlugin::loaded($params['plugin'])) {
try {
CakePlugin::load($params['plugin']);
- $pluginPath = CakePlugin::path($params['plugin']);
- $result = $pluginPath . 'Test' . DS . 'Case';
+ $result = CakePlugin::path($params['plugin']) . 'Test' . DS . 'Case';
} catch (MissingPluginException $e) {}
+ } else {
+ $result = CakePlugin::path($params['plugin']) . 'Test' . DS . 'Case';
}
}
return $result;

0 comments on commit a2f725f

Please sign in to comment.