You are here

public function DomainConfigUITestTrait::createLanguageUser in Domain Access 8

Create a language administrator.

1 call to DomainConfigUITestTrait::createLanguageUser()
DomainConfigUIOptionsTest::setUp in domain_config_ui/tests/src/Functional/DomainConfigUIOptionsTest.php

File

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

Class

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

Namespace

Drupal\Tests\domain_config_ui\Traits

Code

public function createLanguageUser() {
  $this->languageUser = $this
    ->drupalCreateUser([
    'access administration pages',
    'use domain config ui',
    'translate domain configuration',
    'administer site configuration',
  ]);
}