$this->
installSchema('forum',
['forum_index'
]);
$this->
installSchema('node',
['node_access'
]);
$this->
installSchema('search',
['search_dataset'
]);
$this->
installSchema('system',
['sequences'
]);
// @todo Remove tracker in https://www.drupal.org/project/drupal/issues/3261452
$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();
} /**
* Tests multiple migrations to the same destination with no ID conflicts.
*/
public function testMultipleMigrationWithoutIdConflicts() { // Create a node of type page.
$node = Node::
create(['type' => 'page', 'title' => 'foo'
]);
$node->moderation_state->value = 'published';