You are here

protected function PathAliasTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 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 29

Class

PathAliasTest
Add, edit, delete, and change alias and verify its consistency in the database.

Namespace

Drupal\Tests\path\Functional

Code

protected function setUp() {
  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);
}