mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing loading list of tests cases for plugins broken in recent commits
This commit is contained in:
parent
8d52907be7
commit
a2f725ff76
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue