function DrupalWebTestCase::cronRun

Runs cron in the Drupal installed by Simpletest.

17 calls to DrupalWebTestCase::cronRun()
AggregatorCronTestCase::testCron in modules/aggregator/aggregator.test
Adds feeds and updates them via cron process.
CommentUninstallTestCase::testCommentUninstall in modules/comment/comment.test
CronQueueTestCase::testCallable in modules/system/system.test
Tests worker defined as a class method callable.
CronQueueTestCase::testExceptions in modules/system/system.test
Tests that exceptions thrown by workers are handled properly.
CronRunTestCase::testCronExceptions in modules/system/system.test
Make sure exceptions thrown on hook_cron() don't affect other modules.

... See full list

File

modules/simpletest/drupal_web_test_case.php, line 2667

Class

DrupalWebTestCase
Test case for typical Drupal tests.

Code

protected function cronRun() {
    $this->drupalGet($GLOBALS['base_url'] . '/cron.php', array(
        'external' => TRUE,
        'query' => array(
            'cron_key' => variable_get('cron_key', 'drupal'),
        ),
    ));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.