Version 1
[yaffs-website] / web / core / modules / text / tests / src / Kernel / Migrate / MigrateTextConfigsTest.php
diff --git a/web/core/modules/text/tests/src/Kernel/Migrate/MigrateTextConfigsTest.php b/web/core/modules/text/tests/src/Kernel/Migrate/MigrateTextConfigsTest.php
new file mode 100644 (file)
index 0000000..05b3708
--- /dev/null
@@ -0,0 +1,34 @@
+<?php
+
+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() {
+    parent::setUp();
+    $this->executeMigration('text_settings');
+  }
+
+  /**
+   * Tests migration of text variables to text.settings.yml.
+   */
+  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());
+  }
+
+}