You are here

MigrateSyslogConfigsTest.php in Zircon Profile 8

File

core/modules/syslog/src/Tests/Migrate/d6/MigrateSyslogConfigsTest.php
View source
<?php

/**
 * @file
 * Contains \Drupal\syslog\Tests\Migrate\d6\MigrateSyslogConfigsTest.
 */
namespace Drupal\syslog\Tests\Migrate\d6;

use Drupal\config\Tests\SchemaCheckTestTrait;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;

/**
 * Upgrade variables to syslog.settings.yml.
 *
 * @group migrate_drupal_6
 */
class MigrateSyslogConfigsTest extends MigrateDrupal6TestBase {
  use SchemaCheckTestTrait;

  /**
   * {@inheritdoc}
   */
  public static $modules = array(
    'syslog',
  );

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

  /**
   * Tests migration of syslog variables to syslog.settings.yml.
   */
  public function testSyslogSettings() {
    $config = $this
      ->config('syslog.settings');
    $this
      ->assertIdentical('drupal', $config
      ->get('identity'));
    $this
      ->assertIdentical('128', $config
      ->get('facility'));
    $this
      ->assertConfigSchema(\Drupal::service('config.typed'), 'syslog.settings', $config
      ->get());
  }

}

Classes

Namesort descending Description
MigrateSyslogConfigsTest Upgrade variables to syslog.settings.yml.