Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / node / tests / src / Kernel / Migrate / d6 / MigrateNodeSettingStickyTest.php
1 <?php
2
3 namespace Drupal\Tests\node\Kernel\Migrate\d6;
4
5 use Drupal\Core\Field\Entity\BaseFieldOverride;
6 use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
7
8 /**
9  * @group migrate_drupal_6
10  */
11 class MigrateNodeSettingStickyTest extends MigrateDrupal6TestBase {
12
13   public static $modules = ['node', 'text', 'menu_ui'];
14
15   /**
16    * {@inheritdoc}
17    */
18   protected function setUp() {
19     parent::setUp();
20     $this->installConfig(['node']);
21     $this->executeMigration('d6_node_type');
22     $this->executeMigration('d6_node_setting_sticky');
23   }
24
25   /**
26    * Tests migration of the sticky checkbox's settings.
27    */
28   public function testMigration() {
29     $this->assertIdentical('Sticky at the top of lists', BaseFieldOverride::load('node.article.sticky')->label());
30   }
31
32 }