You are here

public function MigrateTextConfigsTest::testTextSettings in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/text/src/Tests/Migrate/MigrateTextConfigsTest.php \Drupal\text\Tests\Migrate\MigrateTextConfigsTest::testTextSettings()

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

File

core/modules/text/src/Tests/Migrate/MigrateTextConfigsTest.php, line 33
Contains \Drupal\text\Tests\Migrate\MigrateTextConfigsTest.

Class

MigrateTextConfigsTest
Upgrade variables to text.settings.yml.

Namespace

Drupal\text\Tests\Migrate

Code

public function testTextSettings() {
  $config = $this
    ->config('text.settings');
  $this
    ->assertIdentical(456, $config
    ->get('default_summary_length'));
  $this
    ->assertConfigSchema(\Drupal::service('config.typed'), 'text.settings', $config
    ->get());
}