mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Continuing refactoring of CakeTestMenu.
This commit is contained in:
parent
21afcef7cf
commit
98cf758a98
1 changed files with 20 additions and 2 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue