Fix unit|db tests OUTPUT

This commit is contained in:
stronk7 2009-06-26 09:50:06 +00:00
parent e29380f3c4
commit 5d902b5da5
2 changed files with 7 additions and 7 deletions

View 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();

View 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.