protected function WorkspaceContentModerationIntegrationTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/modules/content_moderation/tests/src/Functional/WorkspaceContentModerationIntegrationTest.php \Drupal\Tests\content_moderation\Functional\WorkspaceContentModerationIntegrationTest::setUp()
Sets the test up.
Overrides ModerationStateTestBase::setUp
File
- core/
modules/ content_moderation/ tests/ src/ Functional/ WorkspaceContentModerationIntegrationTest.php, line 31
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();
}