Using the new table_exists() to initialize tests properly.

This commit is contained in:
stronk7 2006-09-30 15:51:41 +00:00
parent 3e1861cc87
commit 3650ba6f58

View file

@ -74,9 +74,13 @@ class test extends XMLDBAction {
/// Silenty drop any previous test tables
$table = new XMLDBTable('testtable');
if (table_exists($table)) {
$status = drop_table($table, true, false);
}
$table = new XMLDBTable ('anothertest');
if (table_exists($table)) {
$status = drop_table($table, true, false);
}
/// 1st test. Complete table creation.
$table = new XMLDBTable('testtable');