summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/simpletest/drupal_web_test_case.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php
index 4c15e884d..b8bdb38b2 100644
--- a/modules/simpletest/drupal_web_test_case.php
+++ b/modules/simpletest/drupal_web_test_case.php
@@ -1168,6 +1168,10 @@ class DrupalWebTestCase extends DrupalTestCase {
$this->refreshVariables();
$this->checkPermissions(array(), TRUE);
+ // Run cron once in that environment, as install.php does at the end of
+ // the installation process.
+ drupal_cron_run();
+
// Log in with a clean $user.
$this->originalUser = $user;
drupal_save_session(FALSE);