You are here

protected function NodeFormTest::setUp in URL Alias Permissions 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/NodeFormTest.php, line 44

Class

NodeFormTest
Test url_alias_permissions with nodes.

Namespace

Drupal\Tests\url_alias_permissions\Functional

Code

protected function setUp() : void {
  parent::setup();
  $this
    ->createContentType([
    'type' => 'page',
    'name' => 'Basic page',
    'display_submitted' => FALSE,
  ]);
  $this->userWithUrlAliasPermissions = $this
    ->drupalCreateUser([
    'create page content',
    'edit any page content',
    'create url aliases',
    'edit page node url alias',
  ]);
  $this->userWithoutUrlAliasPermissions = $this
    ->drupalCreateUser([
    'create page content',
    'edit any page content',
  ]);
}