public function DomainConfigUITestTrait::createAdminUser in Domain Access 8
Create an admin user.
5 calls to DomainConfigUITestTrait::createAdminUser()
- DomainConfigUIOptionsTest::setUp in domain_config_ui/
tests/ src/ Functional/ DomainConfigUIOptionsTest.php - 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 41
Class
- DomainConfigUITestTrait
- Contains helper classes for tests to set up various configuration.
Namespace
Drupal\Tests\domain_config_ui\TraitsCode
public function createAdminUser() {
$this->adminUser = $this
->drupalCreateUser([
'access administration pages',
'access content',
'administer domains',
'administer domain config ui',
'administer site configuration',
'administer languages',
'administer themes',
'set default domain configuration',
'translate domain configuration',
'use domain config ui',
'view domain information',
]);
}