mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Moved check for CakePlugin::loaded() out of if statement in CakeTestLoader::_basePath(). Plugin will only be loaded when the plugin tests are requested.
This commit is contained in:
parent
b3e1c2a9ee
commit
35a014045b
1 changed files with 4 additions and 1 deletions
|
@ -54,7 +54,10 @@ class CakeTestLoader extends PHPUnit_Runner_StandardTestSuiteLoader {
|
|||
$result = CORE_TEST_CASES;
|
||||
} elseif (!empty($params['app'])) {
|
||||
$result = APP_TEST_CASES;
|
||||
} else if (!empty($params['plugin']) && CakePlugin::loaded($params['plugin'])) {
|
||||
} else if (!empty($params['plugin'])) {
|
||||
if (!CakePlugin::loaded($params['plugin'])) {
|
||||
CakePlugin::load($params['plugin']);
|
||||
}
|
||||
$pluginPath = CakePlugin::path($params['plugin']);
|
||||
$result = $pluginPath . 'Test' . DS . 'Case';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue