From c01276a47003a0f05eb23206b7ebd6f562c8f527 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Wed, 6 Jan 2010 22:42:35 -0500 Subject: [PATCH] Moving header and menu display into CakeHtmlReporter. Updating header.php with new variable. --- cake/tests/lib/cake_test_suite_dispatcher.php | 3 --- .../tests/lib/reporter/cake_html_reporter.php | 22 +++++++++++++++++++ cake/tests/lib/templates/header.php | 2 +- 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/cake/tests/lib/cake_test_suite_dispatcher.php b/cake/tests/lib/cake_test_suite_dispatcher.php index 59427183d..44460719e 100644 --- a/cake/tests/lib/cake_test_suite_dispatcher.php +++ b/cake/tests/lib/cake_test_suite_dispatcher.php @@ -86,9 +86,6 @@ class CakeTestSuiteDispatcher { * @return void */ function dispatch() { - CakeTestMenu::testHeader(); - CakeTestMenu::testSuiteHeader(); - $this->_checkSimpleTest(); $this->_parseParams(); diff --git a/cake/tests/lib/reporter/cake_html_reporter.php b/cake/tests/lib/reporter/cake_html_reporter.php index 73d43a318..3d5206547 100644 --- a/cake/tests/lib/reporter/cake_html_reporter.php +++ b/cake/tests/lib/reporter/cake_html_reporter.php @@ -106,10 +106,32 @@ class CakeHtmlReporter extends SimpleReporter { */ function paintHeader($testName) { $this->sendNoCacheHeaders(); + $this->paintDocumentHeader(); + $this->paintTestMenu(); echo "

$testName

\n"; echo "