protected function DrupalWebTestCase::cronRun in SimpleTest 7.2
Same name and namespace in other branches
- 6.2 drupal_web_test_case.php \DrupalWebTestCase::cronRun()
- 7 drupal_web_test_case.php \DrupalWebTestCase::cronRun()
Runs cron in the Drupal installed by Simpletest.
File
- ./
drupal_web_test_case.php, line 2111 - Provides DrupalTestCase, DrupalUnitTestCase, and DrupalWebTestCase classes.
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'),
),
));
}