You are here

public function DomainConfigUITestTrait::createEditorUser in Domain Access 8

Create an editor user.

4 calls to DomainConfigUITestTrait::createEditorUser()
DomainConfigUIOverrideTest::setUp in domain_config_ui/tests/src/FunctionalJavascript/DomainConfigUIOverrideTest.php
DomainConfigUIPermissionsTest::setUp in domain_config_ui/tests/src/Functional/DomainConfigUIPermissionsTest.php
DomainConfigUiSavedConfigTest::setUp in domain_config_ui/tests/src/FunctionalJavascript/DomainConfigUiSavedConfigTest.php
DomainConfigUISettingsTest::setUp in domain_config_ui/tests/src/FunctionalJavascript/DomainConfigUISettingsTest.php

File

domain_config_ui/tests/src/Traits/DomainConfigUITestTrait.php, line 60

Class

DomainConfigUITestTrait
Contains helper classes for tests to set up various configuration.

Namespace

Drupal\Tests\domain_config_ui\Traits

Code

public function createEditorUser() {
  $this->editorUser = $this
    ->drupalCreateUser([
    'access administration pages',
    'access content',
    'administer site configuration',
    'administer languages',
  ]);
}