You are here

public function DomainConfigUITestTrait::createLimitedUser in Domain Access 8

Create a limited admin user.

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

File

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

Class

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

Namespace

Drupal\Tests\domain_config_ui\Traits

Code

public function createLimitedUser() {
  $this->limitedUser = $this
    ->drupalCreateUser([
    'access administration pages',
    'administer languages',
    'administer site configuration',
    'use domain config ui',
    'set default domain configuration',
  ]);
}