Version 1
[yaffs-website] / web / core / modules / node / tests / src / Kernel / Migrate / d6 / MigrateNodeSettingStickyTest.php
diff --git a/web/core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeSettingStickyTest.php b/web/core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeSettingStickyTest.php
new file mode 100644 (file)
index 0000000..58eeca3
--- /dev/null
@@ -0,0 +1,32 @@
+<?php
+
+namespace Drupal\Tests\node\Kernel\Migrate\d6;
+
+use Drupal\Core\Field\Entity\BaseFieldOverride;
+use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
+
+/**
+ * @group migrate_drupal_6
+ */
+class MigrateNodeSettingStickyTest extends MigrateDrupal6TestBase {
+
+  public static $modules = ['node', 'text', 'menu_ui'];
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function setUp() {
+    parent::setUp();
+    $this->installConfig(['node']);
+    $this->executeMigration('d6_node_type');
+    $this->executeMigration('d6_node_setting_sticky');
+  }
+
+  /**
+   * Tests migration of the sticky checkbox's settings.
+   */
+  public function testMigration() {
+    $this->assertIdentical('Sticky at the top of lists', BaseFieldOverride::load('node.article.sticky')->label());
+  }
+
+}