Commit 59706ff6 authored by Petr Škoda's avatar Petr Škoda
Browse files

MDL-37420 add support for db schemas in auth test

parent 917fddb5
......@@ -104,7 +104,11 @@ class auth_db_testcase extends advanced_testcase {
$dbman->drop_table($table);
}
$dbman->create_table($table);
set_config('table', $CFG->prefix.'auth_db_users', 'auth/db');
if (!empty($CFG->dboptions['dbschema'])) {
set_config('table', $CFG->dboptions['dbschema'].'.'.$CFG->prefix.'auth_db_users', 'auth/db');
} else {
set_config('table', $CFG->prefix.'auth_db_users', 'auth/db');
}
set_config('fielduser', 'name', 'auth/db');
set_config('fieldpass', 'pass', 'auth/db');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment