Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
c1d2d11f
Commit
c1d2d11f
authored
Jan 15, 2010
by
Angie Byron
Browse files
#685004
by Dave Reid: Fixed Cannot run tests under non-standard profile.
parent
239cec28
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/simpletest/drupal_web_test_case.php
View file @
c1d2d11f
...
...
@@ -1092,7 +1092,7 @@ protected function drupalLogout() {
* List of modules to enable for the duration of the test.
*/
protected
function
setUp
()
{
global
$db_prefix
,
$user
,
$language
;
global
$db_prefix
,
$user
,
$language
,
$conf
;
// Store necessary current values before switching to prefixed database.
$this
->
originalLanguage
=
$language
;
...
...
@@ -1127,7 +1127,9 @@ protected function setUp() {
ini_set
(
'log_errors'
,
1
);
ini_set
(
'error_log'
,
$public_files_directory
.
'/error.log'
);
// Reset all statics so that test is performed with a clean environment.
// Reset all statics and variables so that test is performed with a clean
// environment.
$conf
=
array
();
drupal_static_reset
();
include_once
DRUPAL_ROOT
.
'/includes/install.inc'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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