You are here

protected function PathautoMassDeleteTest::setUp in Pathauto 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/PathautoMassDeleteTest.php, line 60

Class

PathautoMassDeleteTest
Mass delete functionality tests.

Namespace

Drupal\Tests\pathauto\Functional

Code

protected function setUp() {
  parent::setUp();
  $permissions = [
    'administer pathauto',
    'administer url aliases',
    'create url aliases',
  ];
  $this->adminUser = $this
    ->drupalCreateUser($permissions);
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->createPattern('node', '/content/[node:title]');
  $this
    ->createPattern('user', '/users/[user:name]');
  $this
    ->createPattern('taxonomy_term', '/[term:vocabulary]/[term:name]');
}