function MigrateNodeBundleSettingsTest::setUp
Same name in other branches
- 9 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeBundleSettingsTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeBundleSettingsTest::setUp()
- 10 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeBundleSettingsTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeBundleSettingsTest::setUp()
- 11.x 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\d6Code
protected function setUp() {
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',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.