From 5d902b5da5972df000118064e18d68d1bd92ac77 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Fri, 26 Jun 2009 09:50:06 +0000 Subject: [PATCH] Fix unit|db tests OUTPUT --- admin/report/unittest/dbtest.php | 4 ++-- admin/report/unittest/index.php | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/admin/report/unittest/dbtest.php b/admin/report/unittest/dbtest.php index a2468e82a5..134b900d44 100644 --- a/admin/report/unittest/dbtest.php +++ b/admin/report/unittest/dbtest.php @@ -103,7 +103,7 @@ if (!empty($tests)) { } // Print the form for adjusting options. -print_simple_box_start('center', '70%'); +echo $OUTPUT->box_start('generalbox boxwidthwide boxaligncenter'); echo '
'; echo '
'; print_heading("Run functional database tests"); // TODO: localise @@ -137,7 +137,7 @@ where order of parameters is: dblibrary, dbtype, dbhost, dbuser, dbpass, dbname, echo '

'; echo '
'; echo '
'; -print_simple_box_end(); +echo $OUTPUT->box_end(); // Footer. admin_externalpage_print_footer(); diff --git a/admin/report/unittest/index.php b/admin/report/unittest/index.php index 1b7edba56d..e029979607 100644 --- a/admin/report/unittest/index.php +++ b/admin/report/unittest/index.php @@ -100,7 +100,7 @@ if (!is_null($path)) { $formheader = get_string('rununittests', $langfile); } // Print the form for adjusting options. -print_box_start('generalbox boxwidthwide boxaligncenter'); +echo $OUTPUT->box_start('generalbox boxwidthwide boxaligncenter'); print_heading($formheader); echo '
'; echo '
'; @@ -118,9 +118,9 @@ echo '

'; echo ''; echo '
'; echo '
'; -print_box_end(); +echo $OUTPUT->box_end(); -print_box_start('generalbox boxwidthwide boxaligncenter'); +echo $OUTPUT->box_start('generalbox boxwidthwide boxaligncenter'); if (true) { echo "

Fake test tables are disabled for now, sorry

"; // DO NOT LOCALISE!!! to be removed soon @@ -128,7 +128,7 @@ if (true) { print_heading(get_string('testdboperations', 'simpletest')); // TODO: localise echo '

Please add $CFG->unittestprefix="tst_"; or some other unique test table prefix if you want to execute all tests'; - + } else { print_heading(get_string('testdboperations', 'simpletest')); echo '

'.get_string('unittestprefixsetting', 'simpletest', $CFG).'

'; @@ -140,7 +140,7 @@ if (true) { echo ''; echo ''; } -print_box_end(); +echo $OUTPUT->box_end(); // Footer. -- 2.39.5