diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2012-02-28 23:05:40 -0800 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2012-02-28 23:05:40 -0800 |
commit | a71a3f59c82ec2b3b027817fafd0f5edad2e54ab (patch) | |
tree | bf7875de10115a6451ec167d6c28b71966e35df1 /modules/simpletest/drupal_web_test_case.php | |
parent | bb3f7e97c33671539d61158e16cac965c72080d0 (diff) | |
download | brdo-a71a3f59c82ec2b3b027817fafd0f5edad2e54ab.tar.gz brdo-a71a3f59c82ec2b3b027817fafd0f5edad2e54ab.tar.bz2 |
Issue #911354 by adrian, boombatower, jhedstrom, sun, yhahn, langworthy, dixon_, jrbeeman: Fixed Tests in profiles/[name]/modules cannot be run and cannot use a different profile for running tests.
Diffstat (limited to 'modules/simpletest/drupal_web_test_case.php')
-rw-r--r-- | modules/simpletest/drupal_web_test_case.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php index a457a89b3..42bab12ce 100644 --- a/modules/simpletest/drupal_web_test_case.php +++ b/modules/simpletest/drupal_web_test_case.php @@ -1344,6 +1344,12 @@ class DrupalWebTestCase extends DrupalTestCase { variable_set('file_private_path', $private_files_directory); variable_set('file_temporary_path', $temp_files_directory); + // Set the 'simpletest_parent_profile' variable to add the parent profile's + // search path to the child site's search paths. + // @see drupal_system_listing() + // @todo This may need to be primed like 'install_profile' above. + variable_set('simpletest_parent_profile', $this->originalProfile); + // Include the testing profile. variable_set('install_profile', $this->profile); $profile_details = install_profile_info($this->profile, 'en'); |