function PathAliasTest::setUp

Same name in other branches
  1. 8.9.x core/modules/path/tests/src/Functional/PathAliasTest.php \Drupal\Tests\path\Functional\PathAliasTest::setUp()
  2. 10 core/modules/path/tests/src/Functional/PathAliasTest.php \Drupal\Tests\path\Functional\PathAliasTest::setUp()
  3. 11.x core/modules/path/tests/src/Functional/PathAliasTest.php \Drupal\Tests\path\Functional\PathAliasTest::setUp()

Overrides PathTestBase::setUp

File

core/modules/path/tests/src/Functional/PathAliasTest.php, line 31

Class

PathAliasTest
Tests modifying path aliases from the UI.

Namespace

Drupal\Tests\path\Functional

Code

protected function setUp() : void {
    parent::setUp();
    // Create test user and log in.
    $web_user = $this->drupalCreateUser([
        'create page content',
        'edit own page content',
        'administer url aliases',
        'create url aliases',
        'access content overview',
    ]);
    $this->drupalLogin($web_user);
}

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