Permalink
Browse files

Using the new table_exists() to initialize tests properly.

  • Loading branch information...
stronk7
stronk7 committed Sep 30, 2006
1 parent 3e1861c commit 3650ba6f5862c6f518980480cdb8737633433ad4
Showing with 6 additions and 2 deletions.
  1. +6 −2 admin/xmldb/actions/test/test.class.php
@@ -74,9 +74,13 @@ function invoke() {
/// Silenty drop any previous test tables
$table = new XMLDBTable('testtable');
- $status = drop_table($table, true, false);
+ if (table_exists($table)) {
+ $status = drop_table($table, true, false);
+ }
$table = new XMLDBTable ('anothertest');
- $status = drop_table($table, true, false);
+ if (table_exists($table)) {
+ $status = drop_table($table, true, false);
+ }
/// 1st test. Complete table creation.
$table = new XMLDBTable('testtable');

0 comments on commit 3650ba6

Please sign in to comment.