class MigrateTextConfigsTest

Same name and namespace in other branches
  1. 11.x core/modules/text/tests/src/Kernel/Migrate/MigrateTextConfigsTest.php \Drupal\Tests\text\Kernel\Migrate\MigrateTextConfigsTest
  2. 10 core/modules/text/tests/src/Kernel/Migrate/MigrateTextConfigsTest.php \Drupal\Tests\text\Kernel\Migrate\MigrateTextConfigsTest
  3. 8.9.x core/modules/text/tests/src/Kernel/Migrate/MigrateTextConfigsTest.php \Drupal\Tests\text\Kernel\Migrate\MigrateTextConfigsTest

Upgrade variables to text.settings.yml.

@group migrate_drupal_6

Hierarchy

Expanded class hierarchy of MigrateTextConfigsTest

File

core/modules/text/tests/src/Kernel/Migrate/MigrateTextConfigsTest.php, line 13

Namespace

Drupal\Tests\text\Kernel\Migrate
View source
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() {
    $config = $this->config('text.settings');
    $this->assertSame(456, $config->get('default_summary_length'));
    $this->assertConfigSchema(\Drupal::service('config.typed'), 'text.settings', $config->get());
  }

}

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