You are here

public function DomainConfigUIOptionsTest::setUp in Domain Access 8

Overrides DomainConfigTestBase::setUp

File

domain_config_ui/tests/src/Functional/DomainConfigUIOptionsTest.php, line 30

Class

DomainConfigUIOptionsTest
Tests granular permissions for the domain config user interface.

Namespace

Drupal\Tests\domain_config_ui\Functional

Code

public function setUp() {
  parent::setUp();
  $this
    ->createAdminUser();
  $this
    ->createLimitedUser();
  $this
    ->createLanguageUser();
  $this
    ->domainCreateTestDomains(5);

  // Assign the adminUser and editorUser to some domains.
  $this
    ->addDomainsToEntity('user', $this->limitedUser
    ->id(), [
    'example_com',
    'one_example_com',
  ], DomainInterface::DOMAIN_ADMIN_FIELD);
  $this
    ->addDomainsToEntity('user', $this->languageUser
    ->id(), [
    'two_example_com',
    'three_example_com',
  ], DomainInterface::DOMAIN_ADMIN_FIELD);
}