diff --git a/cake/tests/lib/cake_test_menu.php b/cake/tests/lib/cake_test_menu.php index c2f920de97b..3e7e262f8f7 100644 --- a/cake/tests/lib/cake_test_menu.php +++ b/cake/tests/lib/cake_test_menu.php @@ -84,24 +84,6 @@ function testHeader() { } } -/** - * Provides the left hand navigation for the testsuite - * - * @return void - * @access public - */ - function testSuiteHeader() { - switch (CAKE_TEST_OUTPUT) { - case CAKE_TEST_OUTPUT_HTML: - ob_start(); - $groups = $_SERVER['PHP_SELF'] . '?show=groups'; - $cases = $_SERVER['PHP_SELF'] . '?show=cases'; - $plugins = App::objects('plugin'); - include CAKE_TESTS_LIB . 'content.php'; - break; - } - } - /** * Provides the testsuite footer text * diff --git a/cake/tests/lib/cake_test_suite_dispatcher.php b/cake/tests/lib/cake_test_suite_dispatcher.php index 59365c81842..26b5068baaf 100644 --- a/cake/tests/lib/cake_test_suite_dispatcher.php +++ b/cake/tests/lib/cake_test_suite_dispatcher.php @@ -139,7 +139,7 @@ function _testCaseList() { $Reporter =& $this->getReporter(); $Reporter->paintDocumentHeader(); $Reporter->paintTestMenu(); - CakeTestMenu::testCaseList(); + $Reporter->testCaseList(); $Reporter->paintDocumentEnd(); } @@ -152,7 +152,7 @@ function _groupTestList() { $Reporter =& $this->getReporter(); $Reporter->paintDocumentHeader(); $Reporter->paintTestMenu(); - CakeTestMenu::groupTestList(); + $Reporter->groupTestList(); $Reporter->paintDocumentEnd(); } diff --git a/cake/tests/lib/reporter/cake_html_reporter.php b/cake/tests/lib/reporter/cake_html_reporter.php index 4bb8ea92729..3a256333fd7 100644 --- a/cake/tests/lib/reporter/cake_html_reporter.php +++ b/cake/tests/lib/reporter/cake_html_reporter.php @@ -129,7 +129,28 @@ function paintDocumentHeader() { * @return void */ function paintTestMenu() { - CakeTestMenu::testSuiteHeader(); + $groups = $_SERVER['PHP_SELF'] . '?show=groups'; + $cases = $_SERVER['PHP_SELF'] . '?show=cases'; + $plugins = App::objects('plugin'); + include CAKE_TESTS_LIB . 'templates' . DS . 'menu.php'; + } + +/** + * Retrieves and paints the list of tests cases in an HTML format. + * + * @return void + */ + function testCaseList() { + CakeTestMenu::testCaseList(); + } + +/** + * Retrieves and paints the list of group tests in an HTML format. + * + * @return void + */ + function groupTestList() { + CakeTestMenu::groupTestList(); } /** diff --git a/cake/tests/lib/templates/content.php b/cake/tests/lib/templates/content.php deleted file mode 100644 index 8fd08747493..00000000000 --- a/cake/tests/lib/templates/content.php +++ /dev/null @@ -1,58 +0,0 @@ - - * Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org) - * - * Licensed under The Open Group Test Suite License - * Redistributions of files must retain the above copyright notice. - * - * @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests - * @package cake - * @subpackage cake.cake.tests.lib - * @since CakePHP(tm) v 1.2.0.4433 - * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License - */ -?> -
- -
-
\ No newline at end of file diff --git a/cake/tests/lib/content.php b/cake/tests/lib/templates/menu.php similarity index 93% rename from cake/tests/lib/content.php rename to cake/tests/lib/templates/menu.php index 8fd08747493..2a5b86219eb 100644 --- a/cake/tests/lib/content.php +++ b/cake/tests/lib/templates/menu.php @@ -21,7 +21,7 @@