function WorkspaceContentModerationIntegrationTest::setUp
Same name in other branches
- 9 core/modules/content_moderation/tests/src/Functional/WorkspaceContentModerationIntegrationTest.php \Drupal\Tests\content_moderation\Functional\WorkspaceContentModerationIntegrationTest::setUp()
- 8.9.x core/modules/content_moderation/tests/src/Functional/WorkspaceContentModerationIntegrationTest.php \Drupal\Tests\content_moderation\Functional\WorkspaceContentModerationIntegrationTest::setUp()
- 10 core/modules/content_moderation/tests/src/Functional/WorkspaceContentModerationIntegrationTest.php \Drupal\Tests\content_moderation\Functional\WorkspaceContentModerationIntegrationTest::setUp()
Overrides ModerationStateTestBase::setUp
File
-
core/
modules/ content_moderation/ tests/ src/ Functional/ WorkspaceContentModerationIntegrationTest.php, line 41
Class
- WorkspaceContentModerationIntegrationTest
- Tests Workspaces together with Content Moderation.
Namespace
Drupal\Tests\content_moderation\FunctionalCode
protected function setUp() : void {
parent::setUp();
$this->drupalLogin($this->rootUser);
// Enable moderation on Article node type.
$this->createContentTypeFromUi('Article', 'article', TRUE);
$this->setupWorkspaceSwitcherBlock();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.