You are here

protected function PathautoTaxonomyWebTest::setUp in Pathauto 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/PathautoTaxonomyWebTest.php, line 38

Class

PathautoTaxonomyWebTest
Tests pathauto taxonomy UI integration.

Namespace

Drupal\Tests\pathauto\Functional

Code

protected function setUp() {
  parent::setUp();

  // Allow other modules to add additional permissions for the admin user.
  $permissions = [
    'administer pathauto',
    'administer url aliases',
    'create url aliases',
    'administer taxonomy',
  ];
  $this->adminUser = $this
    ->drupalCreateUser($permissions);
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->createPattern('taxonomy_term', '/[term:vocabulary]/[term:name]');
}