protected function PathautoSettingsFormWebTest::setUp in Pathauto 8
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ PathautoSettingsFormWebTest.php, line 95
Class
- PathautoSettingsFormWebTest
- Tests pathauto settings form.
Namespace
Drupal\Tests\pathauto\FunctionalCode
protected function setUp() {
parent::setUp();
$this
->drupalCreateContentType([
'type' => 'article',
]);
$permissions = [
'administer pathauto',
'notify of path changes',
'administer url aliases',
'create url aliases',
'bypass node access',
];
$this->adminUser = $this
->drupalCreateUser($permissions);
$this
->drupalLogin($this->adminUser);
$this
->createPattern('node', '/content/[node:title]');
}