You are here

protected function ModerationStateTestBase::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/content_moderation/tests/src/Functional/ModerationStateTestBase.php \Drupal\Tests\content_moderation\Functional\ModerationStateTestBase::setUp()

Sets the test up.

Overrides BrowserTestBase::setUp

1 call to ModerationStateTestBase::setUp()
WorkspaceContentModerationIntegrationTest::setUp in core/modules/content_moderation/tests/src/Functional/WorkspaceContentModerationIntegrationTest.php
Sets the test up.
7 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 75

Class

ModerationStateTestBase
Defines a base class for moderation state tests.

Namespace

Drupal\Tests\content_moderation\Functional

Code

protected function setUp() {
  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',
  ]);
}