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

This commit is contained in:
Jose Lorenzo Rodriguez 2011-05-22 22:58:52 -04:30
parent 8d52907be7
commit a2f725ff76

View file

@ -58,9 +58,10 @@ class CakeTestLoader extends PHPUnit_Runner_StandardTestSuiteLoader {
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;