diff --git a/cake/tests/lib/test_manager.php b/cake/tests/lib/test_manager.php index 06c74d2f0..699af482f 100644 --- a/cake/tests/lib/test_manager.php +++ b/cake/tests/lib/test_manager.php @@ -267,14 +267,10 @@ class TextTestManager extends TestManager { $manager =& new TextTestManager(); $groupTests =& $manager->_getTestGroupList($directory); - if (1 > count($groupTests)) { - $noGroups = "No test groups set up!\n"; - return $noGroups; - } $buffer = "Available test groups:\n"; $buffer .= $manager->getBaseURL() . "?group=all All tests<\n"; - foreach ($groupTests as $groupTest) { + foreach ((array)$groupTests as $groupTest) { $buffer .= "
  • " . $groupTest . "&output=txt"."
  • \n"; } return $buffer . "\n"; @@ -321,11 +317,6 @@ class HtmlTestManager extends TestManager { $manager =& new HtmlTestManager(); $groupTests =& $manager->_getTestGroupList($directory); - if (1 > count($groupTests)) { - $noGroupTests = "

    No test cases set up!

    "; - return $noGroupTests; - } - if (isset($_GET['app'])) { $buffer = "

    Available App Test Groups:

    \n\n";