Version 1
[yaffs-website] / web / core / modules / tracker / tests / src / Kernel / Migrate / d7 / MigrateTrackerSettingsTest.php
diff --git a/web/core/modules/tracker/tests/src/Kernel/Migrate/d7/MigrateTrackerSettingsTest.php b/web/core/modules/tracker/tests/src/Kernel/Migrate/d7/MigrateTrackerSettingsTest.php
new file mode 100644 (file)
index 0000000..ea97322
--- /dev/null
@@ -0,0 +1,32 @@
+<?php
+
+namespace Drupal\Tests\tracker\Kernel\Migrate\d7;
+
+use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
+
+/**
+ * Tests migration of Tracker settings to configuration.
+ *
+ * @group tracker
+ */
+class MigrateTrackerSettingsTest extends MigrateDrupal7TestBase {
+
+  public static $modules = ['tracker'];
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function setUp() {
+    parent::setUp();
+    $this->installConfig(['tracker']);
+    $this->executeMigration('d7_tracker_settings');
+  }
+
+  /**
+   * Tests migration of tracker's variables to configuration.
+   */
+  public function testMigration() {
+    $this->assertIdentical(999, \Drupal::config('tracker.settings')->get('cron_index_limit'));
+  }
+
+}