#566494: we need to call drupal_run_cron() at the end of the installation

From: Damien Tournoud <damien@tournoud.net>

process when running into the test environment, otherwise drupal_run_cron()
is called after the first page request which has unintended consequences.
---
 simpletest/drupal_web_test_case.php |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git modules/simpletest/drupal_web_test_case.php modules/simpletest/drupal_web_test_case.php
index 240a44b..e2c79d1 100644
--- modules/simpletest/drupal_web_test_case.php
+++ 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);
