You are here

public function MigrateSystemSiteTest::testSystemSite in Zircon Profile 8

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

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

File

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

Class

MigrateSystemSiteTest
Upgrade site variables to system.*.yml.

Namespace

Drupal\system\Tests\Migrate\d6

Code

public function testSystemSite() {
  $config = $this
    ->config('system.site');
  $this
    ->assertIdentical('site_name', $config
    ->get('name'));
  $this
    ->assertIdentical('site_mail@example.com', $config
    ->get('mail'));
  $this
    ->assertIdentical('Migrate rocks', $config
    ->get('slogan'));
  $this
    ->assertIdentical('/user', $config
    ->get('page.403'));
  $this
    ->assertIdentical('/page-not-found', $config
    ->get('page.404'));
  $this
    ->assertIdentical('/node', $config
    ->get('page.front'));
  $this
    ->assertIdentical(FALSE, $config
    ->get('admin_compact_mode'));
}