MDL-32149 add backup tests and dropping of extra tables
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user