mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Using the new table_exists() to initialize tests properly.
This commit is contained in:
parent
3e1861cc87
commit
3650ba6f58
1 changed files with 6 additions and 2 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue