You are here

protected function ModerationStateTestBase::setUp in Workbench Moderation 8

Sets the test up.

Overrides BrowserTestBase::setUp

4 calls to ModerationStateTestBase::setUp()
ModerationFormTest::setUp in tests/src/Functional/ModerationFormTest.php
Sets the test up.
ModerationStateBlockTest::setUp in tests/src/Functional/ModerationStateBlockTest.php
Sets the test up.
ModerationStateNodeTest::setUp in tests/src/Functional/ModerationStateNodeTest.php
Sets the test up.
NodeAccessTest::setUp in tests/src/Functional/NodeAccessTest.php
Sets the test up.
4 methods override ModerationStateTestBase::setUp()
ModerationFormTest::setUp in tests/src/Functional/ModerationFormTest.php
Sets the test up.
ModerationStateBlockTest::setUp in tests/src/Functional/ModerationStateBlockTest.php
Sets the test up.
ModerationStateNodeTest::setUp in tests/src/Functional/ModerationStateNodeTest.php
Sets the test up.
NodeAccessTest::setUp in tests/src/Functional/NodeAccessTest.php
Sets the test up.

File

tests/src/Functional/ModerationStateTestBase.php, line 74

Class

ModerationStateTestBase
Defines a base class for moderation state tests.

Namespace

Drupal\Tests\workbench_moderation\Functional

Code

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