You are here

MigrateSystemLoggingTest.php in Zircon Profile 8.0

File

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

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

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

/**
 * Upgrade error_level variable to system.logging.yml.
 *
 * @group migrate_drupal_6
 */
class MigrateSystemLoggingTest extends MigrateDrupal6TestBase {
  use SchemaCheckTestTrait;

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

  /**
   * Tests migration of system error_level variables to system.logging.yml.
   */
  public function testSystemLogging() {
    $config = $this
      ->config('system.logging');
    $this
      ->assertIdentical('some', $config
      ->get('error_level'));
    $this
      ->assertConfigSchema(\Drupal::service('config.typed'), 'system.logging', $config
      ->get());
  }

}

Classes

Namesort descending Description
MigrateSystemLoggingTest Upgrade error_level variable to system.logging.yml.