function CronRunTest::testCronUI

Make sure the cron UI reads from the state storage.

File

drupal/core/modules/system/lib/Drupal/system/Tests/System/CronRunTest.php, line 105
Definition of Drupal\system\Tests\System\CronRunTest.

Class

CronRunTest

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');
}