From a2f725ff76854c7f81c030984e579ffb7c517bbc Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Sun, 22 May 2011 22:58:52 -0430 Subject: [PATCH] Fixing loading list of tests cases for plugins broken in recent commits --- lib/Cake/TestSuite/CakeTestLoader.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Cake/TestSuite/CakeTestLoader.php b/lib/Cake/TestSuite/CakeTestLoader.php index 5f9600adb..f1a347a48 100644 --- a/lib/Cake/TestSuite/CakeTestLoader.php +++ b/lib/Cake/TestSuite/CakeTestLoader.php @@ -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;