protected function MigrateDrupal6AuditIdsTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6AuditIdsTest.php \Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6AuditIdsTest::setUp()
Overrides MigrateDrupal6TestBase::setUp
File
- core/
modules/ migrate_drupal/ tests/ src/ Kernel/ d6/ MigrateDrupal6AuditIdsTest.php, line 27
Class
- MigrateDrupal6AuditIdsTest
- Tests the migration auditor for ID conflicts.
Namespace
Drupal\Tests\migrate_drupal\Kernel\d6Code
protected function setUp() : void {
// Enable all modules.
self::$modules = array_keys($this
->coreModuleListDataProvider());
parent::setUp();
// Install required entity schemas.
$this
->installEntitySchemas();
// Install required schemas.
$this
->installSchema('book', [
'book',
]);
$this
->installSchema('dblog', [
'watchdog',
]);
$this
->installSchema('forum', [
'forum_index',
]);
$this
->installSchema('node', [
'node_access',
]);
$this
->installSchema('search', [
'search_dataset',
]);
$this
->installSchema('system', [
'sequences',
]);
$this
->installSchema('tracker', [
'tracker_node',
'tracker_user',
]);
// Enable content moderation for nodes of type page.
$this
->installEntitySchema('content_moderation_state');
$this
->installConfig('content_moderation');
NodeType::create([
'type' => 'page',
])
->save();
$workflow = $this
->createEditorialWorkflow();
$workflow
->getTypePlugin()
->addEntityTypeAndBundle('node', 'page');
$workflow
->save();
}