class MigrateNodeSettingPromoteTest

Same name and namespace in other branches
  1. 11.x core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeSettingPromoteTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeSettingPromoteTest
  2. 10 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeSettingPromoteTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeSettingPromoteTest
  3. 8.9.x core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeSettingPromoteTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeSettingPromoteTest

@group migrate_drupal_6

Hierarchy

Expanded class hierarchy of MigrateNodeSettingPromoteTest

File

core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeSettingPromoteTest.php, line 11

Namespace

Drupal\Tests\node\Kernel\Migrate\d6
View source
class MigrateNodeSettingPromoteTest extends MigrateDrupal6TestBase {
  protected static $modules = [
    'node',
    'text',
    'menu_ui',
  ];
  
  /**
   * {@inheritdoc}
   */
  protected function setUp() : void {
    parent::setUp();
    $this->installConfig([
      'node',
    ]);
    $this->executeMigration('d6_node_type');
    $this->executeMigration('d6_node_setting_promote');
  }
  
  /**
   * Tests migration of the promote checkbox's settings.
   */
  public function testMigration() {
    $this->assertSame('Promoted to front page', BaseFieldOverride::load('node.article.promote')->label());
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.