]> git.mjollnir.org Git - moodle.git/commitdiff
Fix unit|db tests OUTPUT
authorstronk7 <stronk7>
Fri, 26 Jun 2009 09:50:06 +0000 (09:50 +0000)
committerstronk7 <stronk7>
Fri, 26 Jun 2009 09:50:06 +0000 (09:50 +0000)
admin/report/unittest/dbtest.php
admin/report/unittest/index.php

index a2468e82a5b45f6dfc533620554e0e198f079fe5..134b900d4455af2fdd8d33b2a020b50a3da0982c 100644 (file)
@@ -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 '<form method="post" action="dbtest.php">';
 echo '<div>';
 print_heading("Run functional database tests"); // TODO: localise
@@ -137,7 +137,7 @@ where order of parameters is: dblibrary, dbtype, dbhost, dbuser, dbpass, dbname,
 echo '<p><input type="submit" value="' . get_string('runtests', 'simpletest') . '" /></p>';
 echo '</div>';
 echo '</form>';
-print_simple_box_end();
+echo $OUTPUT->box_end();
 
 // Footer.
 admin_externalpage_print_footer();
index 1b7edba56d306f5b233f83a7f4fb4277f9b9e042..e029979607adb8ba7e2d00a330a30b60dbfab2a1 100644 (file)
@@ -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 '<form method="get" action="index.php">';
 echo '<fieldset class="invisiblefieldset">';
@@ -118,9 +118,9 @@ echo '</p>';
 echo '<input type="submit" value="' . get_string('runtests', $langfile) . '" />';
 echo '</fieldset>';
 echo '</form>';
-print_box_end();
+echo $OUTPUT->box_end();
 
-print_box_start('generalbox boxwidthwide boxaligncenter');
+echo $OUTPUT->box_start('generalbox boxwidthwide boxaligncenter');
 if (true) {
     echo "<p>Fake test tables are disabled for now, sorry</p>"; // DO NOT LOCALISE!!! to be removed soon
 
@@ -128,7 +128,7 @@ if (true) {
     print_heading(get_string('testdboperations', 'simpletest'));
     // TODO: localise
     echo '<p>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 '<p>'.get_string('unittestprefixsetting', 'simpletest', $CFG).'</p>';
@@ -140,7 +140,7 @@ if (true) {
     echo '</fieldset>';
     echo '</form>';
 }
-print_box_end();
+echo $OUTPUT->box_end();
 
 
 // Footer.