summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-12-24 17:30:03 -0800
committerwebchick <webchick@24967.no-reply.drupal.org>2011-12-24 17:30:03 -0800
commit364cc3349a8dca33a5ba056ac85b70776be24e29 (patch)
tree38857fde307652c804023574fa76e9b8b589d347
parent8de8ead4d313a1dad265df0edfa773290fe8484d (diff)
downloadbrdo-364cc3349a8dca33a5ba056ac85b70776be24e29.tar.gz
brdo-364cc3349a8dca33a5ba056ac85b70776be24e29.tar.bz2
Issue #1373634 by oriol_e9g, sun: Fixed Installation profile is not installed and not registered as module, unless identical to parent site.
-rw-r--r--modules/simpletest/drupal_web_test_case.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php
index 48b06406e..9aecf350e 100644
--- a/modules/simpletest/drupal_web_test_case.php
+++ b/modules/simpletest/drupal_web_test_case.php
@@ -1327,6 +1327,13 @@ class DrupalWebTestCase extends DrupalTestCase {
$test_info['test_run_id'] = $this->databasePrefix;
$test_info['in_child_site'] = FALSE;
+ // Preset the 'install_profile' system variable, so the first call into
+ // system_rebuild_module_data() (in drupal_install_system()) will register
+ // the test's profile as a module. Without this, the installation profile of
+ // the parent site (executing the test) is registered, and the test
+ // profile's hook_install() and other hook implementations are never invoked.
+ $conf['install_profile'] = $this->profile;
+
include_once DRUPAL_ROOT . '/includes/install.inc';
drupal_install_system();