summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-15 03:07:34 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-15 03:07:34 +0000
commitc1d2d11f92fed85c8577922fdbe95dc285ddacef (patch)
treeac3f782162159a46de37b44a1f0faf36e4ef4610 /modules
parent239cec289d6717d86aeb9ac8e48e09de957f3d14 (diff)
downloadbrdo-c1d2d11f92fed85c8577922fdbe95dc285ddacef.tar.gz
brdo-c1d2d11f92fed85c8577922fdbe95dc285ddacef.tar.bz2
#685004 by Dave Reid: Fixed Cannot run tests under non-standard profile.
Diffstat (limited to 'modules')
-rw-r--r--modules/simpletest/drupal_web_test_case.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php
index 471d9e41b..38beb0bc1 100644
--- a/modules/simpletest/drupal_web_test_case.php
+++ b/modules/simpletest/drupal_web_test_case.php
@@ -1092,7 +1092,7 @@ class DrupalWebTestCase extends DrupalTestCase {
* 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 @@ class DrupalWebTestCase extends DrupalTestCase {
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';