function MigrateNodeBundleSettingsTest::setUp

Same name in other branches
  1. 9 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeBundleSettingsTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeBundleSettingsTest::setUp()
  2. 8.9.x core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeBundleSettingsTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeBundleSettingsTest::setUp()
  3. 10 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 26

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',
        'label' => 'Promoted to front page',
    ])->save();
    $this->executeMigrations([
        'd6_node_setting_promote',
        'd6_node_setting_status',
        'd6_node_setting_sticky',
    ]);
}

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