diff --git a/cake/tests/lib/cake_test_suite_dispatcher.php b/cake/tests/lib/cake_test_suite_dispatcher.php index 9e5b2982f..a0e50e4f7 100644 --- a/cake/tests/lib/cake_test_suite_dispatcher.php +++ b/cake/tests/lib/cake_test_suite_dispatcher.php @@ -97,9 +97,9 @@ class CakeTestSuiteDispatcher { } elseif ($this->params['case']) { $this->_runTestCase(); } elseif (isset($_GET['show']) && $_GET['show'] == 'cases') { - CakeTestMenu::testCaseList(); + $this->_testCaseList(); } else { - CakeTestMenu::groupTestList(); + $this->_groupTestList(); } CakeTestMenu::footer(); @@ -134,6 +134,24 @@ class CakeTestSuiteDispatcher { } } +/** + * Generates a page containing the a list of test cases that could be run. + * + * @return void + */ + function _testCaseList() { + CakeTestMenu::testCaseList(); + } + +/** + * Generates a page containing a list of group tests that could be run. + * + * @return void + */ + function _groupTestList() { + CakeTestMenu::groupTestList(); + } + /** * Sets the Manager to use for the request. *