summaryrefslogtreecommitdiff
path: root/modules/simpletest/drupal_web_test_case.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-05-10 06:38:23 +0000
committerDries Buytaert <dries@buytaert.net>2010-05-10 06:38:23 +0000
commitc240ea574fcdf96cc8ffaa9775708dd380dce59b (patch)
tree7bf0717d618190d7d72815e0f28697ca8fe6f648 /modules/simpletest/drupal_web_test_case.php
parentd91bb3a3a9fd9bad499f3f66712250fe3a65d5fb (diff)
downloadbrdo-c240ea574fcdf96cc8ffaa9775708dd380dce59b.tar.gz
brdo-c240ea574fcdf96cc8ffaa9775708dd380dce59b.tar.bz2
- Patch #654752 by sndev, Berdir, jrbeeman: file_directory() needs to be set before module install.
Diffstat (limited to 'modules/simpletest/drupal_web_test_case.php')
-rw-r--r--modules/simpletest/drupal_web_test_case.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php
index 16e661f15..1a92b177f 100644
--- a/modules/simpletest/drupal_web_test_case.php
+++ b/modules/simpletest/drupal_web_test_case.php
@@ -1159,6 +1159,11 @@ class DrupalWebTestCase extends DrupalTestCase {
$this->preloadRegistry();
+ // Set path variables.
+ variable_set('file_public_path', $public_files_directory);
+ variable_set('file_private_path', $private_files_directory);
+ variable_set('file_temporary_path', $temp_files_directory);
+
// Include the default profile.
variable_set('install_profile', 'standard');
$profile_details = install_profile_info('standard', 'en');
@@ -1213,11 +1218,6 @@ class DrupalWebTestCase extends DrupalTestCase {
unset($GLOBALS['conf']['language_default']);
$language = language_default();
- // Set path variables
- variable_set('file_public_path', $public_files_directory);
- variable_set('file_private_path', $private_files_directory);
- variable_set('file_temporary_path', $temp_files_directory);
-
// Use the test mail class instead of the default mail handler class.
variable_set('mail_system', array('default-system' => 'TestingMailSystem'));