function PathMediaFormTest::setUp

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

Overrides PathTestBase::setUp

File

core/modules/path/tests/src/Functional/PathMediaFormTest.php, line 27

Class

PathMediaFormTest
Tests the path media form UI.

Namespace

Drupal\Tests\path\Functional

Code

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

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