function ModeratedContentLocalTaskTest::setUp

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

Overrides BrowserTestBase::setUp

File

core/modules/content_moderation/tests/src/Functional/ModeratedContentLocalTaskTest.php, line 40

Class

ModeratedContentLocalTaskTest
Tests moderated content dynamic local task.

Namespace

Drupal\Tests\content_moderation\Functional

Code

protected function setUp() : void {
    parent::setUp();
    $this->drupalPlaceBlock('local_tasks_block');
    $this->adminUser = $this->drupalCreateUser([
        'access administration pages',
        'access content overview',
        'view any unpublished content',
    ]);
}

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