function UpdateSemverTestBase::setUp

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

Overrides BrowserTestBase::setUp

File

core/modules/update/tests/src/Functional/UpdateSemverTestBase.php, line 42

Class

UpdateSemverTestBase
Common setup and utility methods to test projects that use semver releases.

Namespace

Drupal\Tests\update\Functional

Code

protected function setUp() : void {
    parent::setUp();
    $admin_user = $this->drupalCreateUser([
        'administer site configuration',
        'view update notifications',
    ]);
    $this->drupalLogin($admin_user);
    $this->drupalPlaceBlock('local_actions_block');
}

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