public function MigrateNodeBundleSettingsTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/node/src/Tests/Migrate/d6/MigrateNodeBundleSettingsTest.php \Drupal\node\Tests\Migrate\d6\MigrateNodeBundleSettingsTest::setUp()
Performs setup tasks before each individual test method is run.
Overrides MigrateDrupal6TestBase::setUp
File
- core/
modules/ node/ src/ Tests/ Migrate/ d6/ MigrateNodeBundleSettingsTest.php, line 24 - Contains \Drupal\node\Tests\Migrate\d6\MigrateNodeBundleSettingsTest.
Class
- MigrateNodeBundleSettingsTest
- Test migrating node settings into the base_field_bundle_override config entity.
Namespace
Drupal\node\Tests\Migrate\d6Code
public 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',
]);
}