function WorkspaceContentModerationIntegrationTest::setUp
Sets the test up.
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.