protected function PathautoBulkUpdateTest::setUp in Pathauto 8
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ PathautoBulkUpdateTest.php, line 54
Class
- PathautoBulkUpdateTest
- Bulk update functionality tests.
Namespace
Drupal\Tests\pathauto\FunctionalCode
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 forums',
];
$this->adminUser = $this
->drupalCreateUser($permissions);
$this
->drupalLogin($this->adminUser);
$this->patterns = [];
$this->patterns['node'] = $this
->createPattern('node', '/content/[node:title]');
$this->patterns['user'] = $this
->createPattern('user', '/users/[user:name]');
$this->patterns['forum'] = $this
->createPattern('forum', '/forums/[term:name]');
}