Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removing global functions moved to CakeTestMenu

  • Loading branch information...
commit 397bdaf3e1e2f79f3d578606cb5b26cd090dd062 1 parent 4d74dc6
@markstory markstory authored
Showing with 0 additions and 175 deletions.
  1. +0 −175 cake/tests/lib/test_manager.php
View
175 cake/tests/lib/test_manager.php
@@ -637,181 +637,6 @@ function &CakeTestsGetReporter() {
return $Reporter;
}
-/**
- * Provides the "Run More" links in the testsuite interface
- *
- * @return void
- * @access public
- */
- function CakePHPTestRunMore() {
- switch (CAKE_TEST_OUTPUT) {
- case CAKE_TEST_OUTPUT_HTML:
- if (isset($_GET['group'])) {
- if (isset($_GET['app'])) {
- $show = '?show=groups&app=true';
- } else if (isset($_GET['plugin'])) {
- $show = '?show=groups&plugin=' . $_GET['plugin'];
- } else {
- $show = '?show=groups';
- }
- $query = '?group='.$_GET['group'];
- if (isset($_GET['app'])) {
- $query .= '&app=true';
- } elseif (isset($_GET['plugin'])) {
- $query .= '&plugin=' . $_GET['plugin'];
- }
- }
- if (isset($_GET['case'])) {
- if (isset($_GET['app'])) {
- $show = '?show=cases&app=true';
- } else if (isset($_GET['plugin'])) {
- $show = '?show=cases&plugin=' . $_GET['plugin'];
- } else {
- $show = '?show=cases';
- }
- $query = '?case='.$_GET['case'];
- if (isset($_GET['app'])) {
- $query .= '&app=true';
- } elseif (isset($_GET['plugin'])) {
- $query .= '&plugin=' . $_GET['plugin'];
- }
- }
- ob_start();
- echo "<p><a href='" . RUN_TEST_LINK . $show . "'>Run more tests</a> | <a href='" . RUN_TEST_LINK . $query . "&show_passes=1'>Show Passes</a> | \n";
-
- break;
- }
- }
-
-/**
- * Provides the links to analyzing code coverage
- *
- * @return void
- * @access public
- */
- function CakePHPTestAnalyzeCodeCoverage() {
- switch (CAKE_TEST_OUTPUT) {
- case CAKE_TEST_OUTPUT_HTML:
- if (isset($_GET['case'])) {
- $query = '?case='.$_GET['case'];
- if (isset($_GET['app'])) {
- $query .= '&amp;app=true';
- } elseif (isset($_GET['plugin'])) {
- $query .= '&amp;plugin=' . $_GET['plugin'];
- }
- } else {
- $query = '?group='.$_GET['group'];
- if (isset($_GET['app'])) {
- $query .= '&amp;app=true';
- } elseif (isset($_GET['plugin'])) {
- $query .= '&amp;plugin=' . $_GET['plugin'];
- }
- }
- $query .= '&amp;code_coverage=true';
- ob_start();
- echo " <a href='" . RUN_TEST_LINK . $query . "'>Analyze Code Coverage</a></p>\n";
-
- break;
- }
- }
-
-/**
- * Prints a list of test cases
- *
- * @return void
- * @access public
- */
- function CakePHPTestCaseList() {
- switch (CAKE_TEST_OUTPUT) {
- case CAKE_TEST_OUTPUT_HTML:
- ob_start();
- echo HtmlTestManager::getTestCaseList();
- break;
- case CAKE_TEST_OUTPUT_TEXT:
- default:
- echo TextTestManager::getTestCaseList();
- break;
- }
- }
-
-/**
- * Prints a list of group tests
- *
- * @return void
- * @access public
- */
- function CakePHPTestGroupTestList() {
- switch (CAKE_TEST_OUTPUT) {
- case CAKE_TEST_OUTPUT_HTML:
- echo HtmlTestManager::getGroupTestList();
- break;
- case CAKE_TEST_OUTPUT_TEXT:
- default:
- echo TextTestManager::getGroupTestList();
- break;
- }
- }
-
-/**
- * Includes the Testsuite Header
- *
- * @return void
- * @access public
- */
- function CakePHPTestHeader() {
- switch (CAKE_TEST_OUTPUT) {
- case CAKE_TEST_OUTPUT_HTML:
- ob_start();
- if (!class_exists('dispatcher')) {
- require CAKE . 'dispatcher.php';
- }
- $dispatch =& new Dispatcher();
- $dispatch->baseUrl();
- define('BASE', $dispatch->webroot);
- $baseUrl = BASE;
- $characterSet = 'charset=utf-8';
- include CAKE_TESTS_LIB . 'header.php';
-
- break;
- case CAKE_TEST_OUTPUT_TEXT:
- default:
- header('content-type: text/plain');
- break;
- }
- }
-/**
- * Provides the left hand navigation for the testsuite
- *
- * @return void
- * @access public
- */
- function CakePHPTestSuiteHeader() {
- 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
- *
- * @return void
- * @access public
- */
- function CakePHPTestSuiteFooter() {
- switch ( CAKE_TEST_OUTPUT) {
- case CAKE_TEST_OUTPUT_HTML:
- ob_start();
- $baseUrl = BASE;
- include CAKE_TESTS_LIB . 'footer.php';
- break;
- }
- }
}
?>
Please sign in to comment.
Something went wrong with that request. Please try again.