MDL-32149 add backup tests and dropping of extra tables

This commit is contained in:
Petr Skoda
2012-04-03 22:30:54 +02:00
parent 458b33866d
commit dbf5a44798
18 changed files with 3006 additions and 2 deletions
+6
View File
@@ -142,6 +142,12 @@ class phpunit_util {
}
$trans->allow_commit();
$dbreset = true;
// remove extra tables
foreach ($tables as $tablename) {
if (!isset($data[$tablename])) {
$DB->get_manager()->drop_table(new xmldb_table($tablename));
}
}
}
}