protected function PathautoUiTest::setUp in Pathauto 8
Overrides BrowserTestBase::setUp
File
- tests/
src/ FunctionalJavascript/ PathautoUiTest.php, line 41
Class
- PathautoUiTest
- Test basic pathauto functionality.
Namespace
Drupal\Tests\pathauto\FunctionalJavascriptCode
protected function setUp() {
parent::setUp();
$this
->drupalCreateContentType([
'type' => 'page',
'name' => 'Basic page',
]);
$this
->drupalCreateContentType([
'type' => 'article',
]);
// Allow other modules to add additional permissions for the admin user.
$permissions = [
'administer pathauto',
'administer url aliases',
'create url aliases',
'administer nodes',
'bypass node access',
'access content overview',
];
$this->adminUser = $this
->drupalCreateUser($permissions);
$this
->drupalLogin($this->adminUser);
}