MDL-32323 make sure DDL libs are loaded before starting function db tests

This commit is contained in:
Petr Skoda
2012-04-10 15:27:06 +02:00
parent 2fde539255
commit 4787e466d6
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -32,6 +32,7 @@ class ddl_testcase extends database_driver_testcase {
protected function setUp() {
parent::setUp();
$dbman = $this->tdb->get_manager(); // loads DDL libs
$table = new xmldb_table('test_table0');
$table->add_field('id', XMLDB_TYPE_INTEGER, '10', XMLDB_UNSIGNED, XMLDB_NOTNULL, XMLDB_SEQUENCE, null);
+5
View File
@@ -28,6 +28,11 @@ defined('MOODLE_INTERNAL') || die();
class dml_testcase extends database_driver_testcase {
protected function setUp() {
parent::setUp();
$dbman = $this->tdb->get_manager(); // loads DDL libs
}
/**
* Get a xmldb_table object for testing, deleting any existing table
* of the same name, for example if one was left over from a previous test