summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-13 05:37:46 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-13 05:37:46 +0000
commit1d09ec33bdcbcc761a6526e8982859600bd6958e (patch)
treea609d11f02df1fab68279b4bc47fdd2723cbad8b /includes
parent89d04ea78a1d422b2dc21cd9e6e10344674632a1 (diff)
downloadbrdo-1d09ec33bdcbcc761a6526e8982859600bd6958e.tar.gz
brdo-1d09ec33bdcbcc761a6526e8982859600bd6958e.tar.bz2
#602958 by chx: Added API function to SimpleTest to run cron, avoiding fatal errors.
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/common.inc b/includes/common.inc
index aac56ef14..118953c53 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -4098,9 +4098,12 @@ function drupal_page_set_cache() {
}
/**
- * Executes a cron run when called
+ * Executes a cron run when called.
+ *
+ * Do not call this function from test, use $this->cronRun() instead.
+ *
* @return
- * Returns TRUE if ran successfully
+ * Returns TRUE if ran successfully
*/
function drupal_cron_run() {
// Allow execution to continue even if the request gets canceled.