Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
59706ff6
Commit
59706ff6
authored
Jan 08, 2013
by
Petr Škoda
Browse files
MDL-37420 add support for db schemas in auth test
parent
917fddb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
auth/db/tests/db_test.php
View file @
59706ff6
...
...
@@ -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'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment