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
mahara
mahara
Commits
d3c986c6
Commit
d3c986c6
authored
Feb 04, 2016
by
Robert Lyon
Committed by
Gerrit Code Review
Feb 04, 2016
Browse files
Merge "Bug 1515794: Fixing incomplete phpunit database teardown"
parents
cf607886
b8682571
Changes
1
Show whitespace changes
Inline
Side-by-side
htdocs/lib/phpunit.php
View file @
d3c986c6
...
@@ -94,15 +94,12 @@ class UnitTestBootstrap {
...
@@ -94,15 +94,12 @@ class UnitTestBootstrap {
// this can't be done in a transaction because sometimes
// this can't be done in a transaction because sometimes
// things exist in the database that aren't in the file or the other way around
// things exist in the database that aren't in the file or the other way around
// in the case where there are stale tables and then the code is upgraded
// in the case where there are stale tables and then the code is upgraded
foreach
(
array_reverse
(
plugin_types_installed
())
as
$t
)
{
foreach
(
get_installed_plugins_paths
()
as
$pluginpath
)
{
if
(
$installed
=
plugins_installed
(
$t
,
true
))
{
$location
=
$pluginpath
.
'/db/'
;
foreach
(
$installed
as
$p
)
{
$location
=
get_config
(
'docroot'
)
.
$t
.
'/'
.
$p
->
name
.
'/db/'
;
log_info
(
'Uninstalling '
.
$location
);
log_info
(
'Uninstalling '
.
$location
);
if
(
is_readable
(
$location
.
'install.xml'
))
{
$xmldbfile
=
$location
.
'install.xml'
;
uninstall_from_xmldb_file
(
$location
.
'install.xml'
);
if
(
is_readable
(
$xmldbfile
))
{
}
uninstall_from_xmldb_file
(
$xmldbfile
);
}
}
}
}
}
// now uninstall core
// now uninstall core
...
...
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