You are here

protected function MigrateNodeBundleSettingsTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeBundleSettingsTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeBundleSettingsTest::setUp()

Overrides MigrateDrupal6TestBase::setUp

File

core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeBundleSettingsTest.php, line 24

Class

MigrateNodeBundleSettingsTest
Test migrating node settings into the base_field_bundle_override config entity.

Namespace

Drupal\Tests\node\Kernel\Migrate\d6

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->installConfig([
    'node',
  ]);
  $this
    ->executeMigration('d6_node_type');

  // Create a config entity that already exists.
  BaseFieldOverride::create([
    'field_name' => 'promote',
    'entity_type' => 'node',
    'bundle' => 'page',
  ])
    ->save();
  $this
    ->executeMigrations([
    'd6_node_setting_promote',
    'd6_node_setting_status',
    'd6_node_setting_sticky',
  ]);
}