function ModerationStateTestBase::setUp

Same name in other branches
  1. 9 core/modules/content_moderation/tests/src/Functional/ModerationStateTestBase.php \Drupal\Tests\content_moderation\Functional\ModerationStateTestBase::setUp()
  2. 8.9.x core/modules/content_moderation/tests/src/Functional/ModerationStateTestBase.php \Drupal\Tests\content_moderation\Functional\ModerationStateTestBase::setUp()
  3. 11.x core/modules/content_moderation/tests/src/Functional/ModerationStateTestBase.php \Drupal\Tests\content_moderation\Functional\ModerationStateTestBase::setUp()

Sets the test up.

Overrides BrowserTestBase::setUp

8 methods override ModerationStateTestBase::setUp()
DefaultModerationStateTest::setUp in core/modules/content_moderation/tests/src/Functional/DefaultModerationStateTest.php
Sets the test up.
ModerationFormTest::setUp in core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php
Sets the test up.
ModerationLocaleTest::setUp in core/modules/content_moderation/tests/src/Functional/ModerationLocaleTest.php
Sets the test up.
ModerationStateBlockTest::setUp in core/modules/content_moderation/tests/src/Functional/ModerationStateBlockTest.php
Sets the test up.
ModerationStateNodeTest::setUp in core/modules/content_moderation/tests/src/Functional/ModerationStateNodeTest.php
Sets the test up.

... See full list

File

core/modules/content_moderation/tests/src/Functional/ModerationStateTestBase.php, line 77

Class

ModerationStateTestBase
Defines a base class for moderation state tests.

Namespace

Drupal\Tests\content_moderation\Functional

Code

protected function setUp() : void {
    parent::setUp();
    $this->workflow = $this->createEditorialWorkflow();
    $this->adminUser = $this->drupalCreateUser($this->permissions);
    $this->drupalPlaceBlock('local_tasks_block', [
        'id' => 'tabs_block',
    ]);
    $this->drupalPlaceBlock('page_title_block');
    $this->drupalPlaceBlock('local_actions_block', [
        'id' => 'actions_block',
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.