From 45162b05fdb1107811747cfd905ffa618e8e72bb Mon Sep 17 00:00:00 2001 From: phpnut Date: Sun, 4 Feb 2007 02:21:32 +0000 Subject: [PATCH] Fixing notice when not group tests are found git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4436 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/tests/lib/test_manager.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cake/tests/lib/test_manager.php b/cake/tests/lib/test_manager.php index 8171c8555..98046cf95 100644 --- a/cake/tests/lib/test_manager.php +++ b/cake/tests/lib/test_manager.php @@ -312,6 +312,11 @@ 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