You are here

protected function WebTestBase::cronRun in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/simpletest/src/WebTestBase.php \Drupal\simpletest\WebTestBase::cronRun()

Runs cron in the Drupal installed by Simpletest.

18 calls to WebTestBase::cronRun()
AggregatorCronTest::testCron in core/modules/aggregator/src/Tests/AggregatorCronTest.php
Adds feeds and updates them via cron process.
CronQueueTest::testExceptions in core/modules/system/src/Tests/System/CronQueueTest.php
Tests that exceptions thrown by workers are handled properly.
CronRunTest::testCronExceptions in core/modules/system/src/Tests/System/CronRunTest.php
Make sure exceptions thrown on hook_cron() don't affect other modules.
DbLogTest::verifyCron in core/modules/dblog/src/Tests/DbLogTest.php
Verifies that cron correctly applies the database log row limit.
FeedLanguageTest::testFeedLanguage in core/modules/aggregator/src/Tests/FeedLanguageTest.php
Tests creation of feeds with a language.

... See full list

File

core/modules/simpletest/src/WebTestBase.php, line 2203
Contains \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'));
}