You are here

function CronRunTest::testCronUI in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/System/CronRunTest.php \Drupal\system\Tests\System\CronRunTest::testCronUI()

Make sure the cron UI reads from the state storage.

File

core/modules/system/src/Tests/System/CronRunTest.php, line 104
Contains \Drupal\system\Tests\System\CronRunTest.

Class

CronRunTest
Tests cron runs.

Namespace

Drupal\system\Tests\System

Code

function testCronUI() {
  $admin_user = $this
    ->drupalCreateUser(array(
    'administer site configuration',
  ));
  $this
    ->drupalLogin($admin_user);
  $this
    ->drupalGet('admin/config/system/cron');

  // Don't use REQUEST to calculate the exact time, because that will
  // fail randomly. Look for the word 'years', because without a timestamp,
  // the time will start at 1 January 1970.
  $this
    ->assertNoText('years');
}