mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing recently broken tests
This commit is contained in:
parent
38ad1bfc62
commit
85c505fd4f
2 changed files with 10 additions and 8 deletions
|
@ -88,11 +88,11 @@ class PluginTaskTest extends CakeTestCase {
|
|||
'Controller' . DS . 'Component',
|
||||
'Lib',
|
||||
'View' . DS . 'Helper',
|
||||
'tests' . DS . 'Case' . DS . 'Controller' . DS . 'Component',
|
||||
'tests' . DS . 'Case' . DS . 'View' . DS . 'Helper',
|
||||
'tests' . DS . 'Case' . DS . 'Model' . DS . 'Behavior',
|
||||
'tests' . DS . 'Fixture',
|
||||
'vendors',
|
||||
'Test' . DS . 'Case' . DS . 'Controller' . DS . 'Component',
|
||||
'Test' . DS . 'Case' . DS . 'View' . DS . 'Helper',
|
||||
'Test' . DS . 'Case' . DS . 'Model' . DS . 'Behavior',
|
||||
'Test' . DS . 'Fixture',
|
||||
'Vendor',
|
||||
'webroot'
|
||||
);
|
||||
foreach ($directories as $dir) {
|
||||
|
|
|
@ -56,10 +56,12 @@ class CakeTestLoader extends PHPUnit_Runner_StandardTestSuiteLoader {
|
|||
$result = APP_TEST_CASES;
|
||||
} else if (!empty($params['plugin'])) {
|
||||
if (!CakePlugin::loaded($params['plugin'])) {
|
||||
CakePlugin::load($params['plugin']);
|
||||
try {
|
||||
CakePlugin::load($params['plugin']);
|
||||
$pluginPath = CakePlugin::path($params['plugin']);
|
||||
$result = $pluginPath . 'Test' . DS . 'Case';
|
||||
} catch (MissingPluginException $e) {}
|
||||
}
|
||||
$pluginPath = CakePlugin::path($params['plugin']);
|
||||
$result = $pluginPath . 'Test' . DS . 'Case';
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue