diff --git a/cake/tests/lib/test_manager.php b/cake/tests/lib/test_manager.php index 4e7d6bc62..5a72a8309 100644 --- a/cake/tests/lib/test_manager.php +++ b/cake/tests/lib/test_manager.php @@ -117,9 +117,15 @@ class TestManager { } } - function addTestFile(&$groupTest, $file) { + function addTestFile(&$groupTest, $file, $isGroupTest = false) { $manager =& new TestManager(); - $groupTest->addTestFile($file.'.test.php'); + + if (!$isGroupTest) { + $file .= '.test.php'; + } else { + $file .= '.group.php'; + } + $groupTest->addTestFile($file); } function &getTestCaseList() {