MigrateSyslogConfigsTest.php

Same filename in this branch
  1. 8.9.x core/modules/syslog/tests/src/Kernel/Migrate/d7/MigrateSyslogConfigsTest.php
Same filename in other branches
  1. 9 core/modules/syslog/tests/src/Kernel/Migrate/d6/MigrateSyslogConfigsTest.php
  2. 9 core/modules/syslog/tests/src/Kernel/Migrate/d7/MigrateSyslogConfigsTest.php
  3. 10 core/modules/syslog/tests/src/Kernel/Migrate/d6/MigrateSyslogConfigsTest.php
  4. 10 core/modules/syslog/tests/src/Kernel/Migrate/d7/MigrateSyslogConfigsTest.php
  5. 11.x core/modules/syslog/tests/src/Kernel/Migrate/d6/MigrateSyslogConfigsTest.php
  6. 11.x core/modules/syslog/tests/src/Kernel/Migrate/d7/MigrateSyslogConfigsTest.php

Namespace

Drupal\Tests\syslog\Kernel\Migrate\d6

File

core/modules/syslog/tests/src/Kernel/Migrate/d6/MigrateSyslogConfigsTest.php

View source
<?php

namespace Drupal\Tests\syslog\Kernel\Migrate\d6;

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

/**
 * Upgrade variables to syslog.settings.yml.
 *
 * @group migrate_drupal_6
 */
class MigrateSyslogConfigsTest extends MigrateDrupal6TestBase {
    use SchemaCheckTestTrait;
    
    /**
     * {@inheritdoc}
     */
    public static $modules = [
        '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

Title Deprecated Summary
MigrateSyslogConfigsTest Upgrade variables to syslog.settings.yml.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.