protected function PathautoUserWebTest::setUp in Pathauto 8
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ PathautoUserWebTest.php, line 39
Class
- PathautoUserWebTest
- Tests pathauto user UI integration.
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 users',
];
$this->adminUser = $this
->drupalCreateUser($permissions);
$this
->drupalLogin($this->adminUser);
$this
->createPattern('user', '/users/[user:name]');
}