protected function WorkspacesContentModerationStateTest::addEntityTypeAndBundleToWorkflow in Drupal 10
Same name and namespace in other branches
- 8 core/modules/content_moderation/tests/src/Kernel/WorkspacesContentModerationStateTest.php \Drupal\Tests\content_moderation\Kernel\WorkspacesContentModerationStateTest::addEntityTypeAndBundleToWorkflow()
- 9 core/modules/content_moderation/tests/src/Kernel/WorkspacesContentModerationStateTest.php \Drupal\Tests\content_moderation\Kernel\WorkspacesContentModerationStateTest::addEntityTypeAndBundleToWorkflow()
File
- core/
modules/ content_moderation/ tests/ src/ Kernel/ WorkspacesContentModerationStateTest.php, line 236
Class
- WorkspacesContentModerationStateTest
- Tests that Workspaces and Content Moderation work together properly.
Namespace
Drupal\Tests\content_moderation\KernelCode
protected function addEntityTypeAndBundleToWorkflow(WorkflowInterface $workflow, $entity_type_id, $bundle) {
$this->workspaceManager
->executeOutsideWorkspace(function () use ($workflow, $entity_type_id, $bundle) {
$this
->traitAddEntityTypeAndBundleToWorkflow($workflow, $entity_type_id, $bundle);
});
}