You are here

public function MigrateSystemDateTest::testSystemDate in Zircon Profile 8

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

Tests migration of user variables to system_date.yml.

File

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

Class

MigrateSystemDateTest
Upgrade date time variables to system.date config

Namespace

Drupal\system\Tests\Migrate\d6

Code

public function testSystemDate() {
  $config = $this
    ->config('system.date');
  $this
    ->assertIdentical(4, $config
    ->get('first_day'));
  $this
    ->assertIdentical(FALSE, $config
    ->get('timezone.user.configurable'));
  $this
    ->assertIdentical("Europe/Paris", $config
    ->get('timezone.default'));
}