You are here

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\Functional

Code

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);
}