protected function WebTestBase::cronRun

Runs cron in the Drupal installed by Simpletest.

12 calls to WebTestBase::cronRun()
AggregatorCronTest::testCron in drupal/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorCronTest.php
Add feeds update them on cron.
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.
FloodTest::testCleanUp in drupal/core/modules/system/lib/Drupal/system/Tests/System/FloodTest.php
Test flood control mechanism clean-up.
SearchCommentTest::assertCommentAccess in drupal/core/modules/search/lib/Drupal/search/Tests/SearchCommentTest.php
Update search index and search for comment.

... See full list

File

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

Class

WebTestBase
Test case for typical Drupal tests.

Namespace

Drupal\simpletest

Code

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