You are here

public function MigrateSystemCronTest::testSystemCron in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Migrate/d6/MigrateSystemCronTest.php \Drupal\system\Tests\Migrate\d6\MigrateSystemCronTest::testSystemCron()

Tests migration of system (cron) variables to system.cron.yml.

File

core/modules/system/src/Tests/Migrate/d6/MigrateSystemCronTest.php, line 30
Contains \Drupal\system\Tests\Migrate\d6\MigrateSystemCronTest.

Class

MigrateSystemCronTest
Upgrade cron variable to system.*.yml.

Namespace

Drupal\system\Tests\Migrate\d6

Code

public function testSystemCron() {
  $config = $this
    ->config('system.cron');
  $this
    ->assertIdentical(172800, $config
    ->get('threshold.requirements_warning'));
  $this
    ->assertIdentical(1209600, $config
    ->get('threshold.requirements_error'));
}