MigrateTextConfigsTest.php

Same filename in other branches
  1. 9 core/modules/text/tests/src/Kernel/Migrate/MigrateTextConfigsTest.php
  2. 8.9.x core/modules/text/tests/src/Kernel/Migrate/MigrateTextConfigsTest.php
  3. 10 core/modules/text/tests/src/Kernel/Migrate/MigrateTextConfigsTest.php

Namespace

Drupal\Tests\text\Kernel\Migrate

File

core/modules/text/tests/src/Kernel/Migrate/MigrateTextConfigsTest.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\text\Kernel\Migrate;

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

/**
 * Upgrade variables to text.settings.yml.
 *
 * @group migrate_drupal_6
 */
class MigrateTextConfigsTest extends MigrateDrupal6TestBase {
    use SchemaCheckTestTrait;
    
    /**
     * {@inheritdoc}
     */
    protected function setUp() : void {
        parent::setUp();
        $this->executeMigration('text_settings');
    }
    
    /**
     * Tests migration of text variables to text.settings.yml.
     */
    public function testTextSettings() : void {
        $config = $this->config('text.settings');
        $this->assertSame(456, $config->get('default_summary_length'));
        $this->assertConfigSchema(\Drupal::service('config.typed'), 'text.settings', $config->get());
    }

}

Classes

Title Deprecated Summary
MigrateTextConfigsTest Upgrade variables to text.settings.yml.

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