Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Using the new table_exists() to initialize tests properly.

  • Loading branch information...
commit 3650ba6f5862c6f518980480cdb8737633433ad4 1 parent 3e1861c
stronk7 authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 admin/xmldb/actions/test/test.class.php
View
8 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');
Please sign in to comment.
Something went wrong with that request. Please try again.