Continuing refactoring of CakeTestMenu.

This commit is contained in:
Mark Story 2010-01-05 23:16:12 -05:00
parent 21afcef7cf
commit 98cf758a98

View file

@ -97,9 +97,9 @@ class CakeTestSuiteDispatcher {
} elseif ($this->params['case']) { } elseif ($this->params['case']) {
$this->_runTestCase(); $this->_runTestCase();
} elseif (isset($_GET['show']) && $_GET['show'] == 'cases') { } elseif (isset($_GET['show']) && $_GET['show'] == 'cases') {
CakeTestMenu::testCaseList(); $this->_testCaseList();
} else { } else {
CakeTestMenu::groupTestList(); $this->_groupTestList();
} }
CakeTestMenu::footer(); 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. * Sets the Manager to use for the request.
* *