You are here

MigrateSystemSiteTest.php in Zircon Profile 8.0

Same filename and directory in other branches
  1. 8 core/modules/system/src/Tests/Migrate/d6/MigrateSystemSiteTest.php

File

core/modules/system/src/Tests/Migrate/d6/MigrateSystemSiteTest.php
View source
<?php

/**
 * @file
 * Contains \Drupal\system\Tests\Migrate\d6\MigrateSystemSiteTest.
 */
namespace Drupal\system\Tests\Migrate\d6;

use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;

/**
 * Upgrade site variables to system.*.yml.
 *
 * @group migrate_drupal_6
 */
class MigrateSystemSiteTest extends MigrateDrupal6TestBase {

  /**
   * {@inheritdoc}
   */
  protected function setUp() {
    parent::setUp();
    $this
      ->executeMigration('d6_system_site');
  }

  /**
   * Tests migration of system (site) variables to system.site.yml.
   */
  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'));
  }

}

Classes

Namesort descending Description
MigrateSystemSiteTest Upgrade site variables to system.*.yml.