protected function PathautoEnablingEntityTypesTest::setUp in Pathauto 8
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ PathautoEnablingEntityTypesTest.php, line 41
Class
- PathautoEnablingEntityTypesTest
- Tests pathauto settings form.
Namespace
Drupal\Tests\pathauto\FunctionalCode
protected function setUp() {
parent::setUp();
$this
->drupalCreateContentType([
'type' => 'article',
]);
$this
->addDefaultCommentField('node', 'article');
$permissions = [
'administer pathauto',
'administer url aliases',
'create url aliases',
'administer nodes',
'post comments',
];
$this->adminUser = $this
->drupalCreateUser($permissions);
$this
->drupalLogin($this->adminUser);
}