You are here

protected function ModerationStateTestBase::setUp in Workbench Moderation 8.2

Sets the test up.

Overrides WebTestBase::setUp

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

File

src/Tests/ModerationStateTestBase.php, line 65

Class

ModerationStateTestBase
Defines a base class for moderation state tests.

Namespace

Drupal\workbench_moderation\Tests

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',
  ]);
}