Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixing loading list of tests cases for plugins broken in recent commits
  • Loading branch information
lorenzo committed May 23, 2011
1 parent 8d52907 commit a2f725f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Cake/TestSuite/CakeTestLoader.php
Expand Up @@ -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;
Expand Down

0 comments on commit a2f725f

Please sign in to comment.