function MigrateTextConfigsTest::testTextSettings

Same name in other branches
  1. 9 core/modules/text/tests/src/Kernel/Migrate/MigrateTextConfigsTest.php \Drupal\Tests\text\Kernel\Migrate\MigrateTextConfigsTest::testTextSettings()
  2. 8.9.x core/modules/text/tests/src/Kernel/Migrate/MigrateTextConfigsTest.php \Drupal\Tests\text\Kernel\Migrate\MigrateTextConfigsTest::testTextSettings()
  3. 10 core/modules/text/tests/src/Kernel/Migrate/MigrateTextConfigsTest.php \Drupal\Tests\text\Kernel\Migrate\MigrateTextConfigsTest::testTextSettings()

Tests migration of text variables to text.settings.yml.

File

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

Class

MigrateTextConfigsTest
Upgrade variables to text.settings.yml.

Namespace

Drupal\Tests\text\Kernel\Migrate

Code

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());
}

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