protected function WebTestBase::cronRun

Runs cron in the Drupal installed by Simpletest.

13 calls to WebTestBase::cronRun()
AggregatorCronTest::testCron in drupal/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorCronTest.php
Adds feeds and updates them via cron process.
CronRunTest::testCronExceptions in drupal/core/modules/system/lib/Drupal/system/Tests/System/CronRunTest.php
Make sure exceptions thrown on hook_cron() don't affect other modules.
DbLogTest::verifyCron in drupal/core/modules/dblog/lib/Drupal/dblog/Tests/DbLogTest.php
Verifies that cron correctly applies the database log row limit.
FeedLanguageTest::testFeedLanguage in drupal/core/modules/aggregator/lib/Drupal/aggregator/Tests/FeedLanguageTest.php
Tests creation of feeds with a language.
FloodTest::testCleanUp in drupal/core/modules/system/lib/Drupal/system/Tests/System/FloodTest.php
Test flood control mechanism clean-up.

... See full list

File

drupal/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php, line 1647
Definition of Drupal\simpletest\WebTestBase.

Class

WebTestBase
Test case for typical Drupal tests.

Namespace

Drupal\simpletest

Code

protected function cronRun() {
  $this
    ->drupalGet('cron/' . \Drupal::state()
    ->get('system.cron_key'));
}