You are here

MigrateSystemMaintenanceTest.php in Zircon Profile 8

File

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

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

use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;

/**
 * Upgrade maintenance variables to system.*.yml.
 *
 * @group migrate_drupal_6
 */
class MigrateSystemMaintenanceTest extends MigrateDrupal6TestBase {

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

  /**
   * Tests migration of system (maintenance) variables to system.maintenance.yml.
   */
  public function testSystemMaintenance() {
    $config = $this
      ->config('system.maintenance');
    $this
      ->assertIdentical('Drupal is currently under maintenance. We should be back shortly. Thank you for your patience.', $config
      ->get('message'));
  }

}

Classes

Namesort descending Description
MigrateSystemMaintenanceTest Upgrade maintenance variables to system.*.yml.