diff --git a/lib/Cake/Console/Command/TestShell.php b/lib/Cake/Console/Command/TestShell.php index ebaab5bde..c9520cbd5 100644 --- a/lib/Cake/Console/Command/TestShell.php +++ b/lib/Cake/Console/Command/TestShell.php @@ -291,8 +291,8 @@ class TestShell extends Shell { public function available() { $params = $this->_parseArgs(); $testCases = CakeTestLoader::generateTestList($params); - $app = $params['app']; - $plugin = $params['plugin']; + $app = isset($params['app']) ? $params['app'] : null; + $plugin = isset($params['plugin']) ? $params['plugin'] : null; $title = "Core Test Cases:"; $category = 'core';