Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.9.6, 2.0
-
Component/s: Database SQL/XMLDB
-
Labels:None
-
Database:Any
-
Difficulty:Easy
-
Affected Branches:MOODLE_19_STABLE, MOODLE_20_STABLE
-
Fixed Branches:MOODLE_19_STABLE, MOODLE_20_STABLE
Description
It seems that the tables created by the XMLDB Editor test aren't dropped ever.
So we need to introduce this at the end of the test action:
/// Finally drop all the potentially existing 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); } $table = new XMLDBTable ('newnameforthetable'); if (table_exists($table)) { $status = drop_table($table, true, false); }
To be done after 1.9.6 release.
I suppose we could move all this to DML/DDL tests in 2.0, right?