You are here

public function DomainConditionTest::setUp in Domain Access 8

Overrides DomainTestBase::setUp

File

domain/tests/src/Functional/Condition/DomainConditionTest.php, line 45

Class

DomainConditionTest
Tests the domain condition.

Namespace

Drupal\Tests\domain\Functional\Condition

Code

public function setUp() {
  parent::setUp();

  // Set the condition manager.
  $this->manager = $this->container
    ->get('plugin.manager.condition');

  // Create test domains.
  $this
    ->domainCreateTestDomains(5);

  // Get two sample domains.
  $this->domains = \Drupal::entityTypeManager()
    ->getStorage('domain')
    ->loadMultiple();
  $this->testDomain = array_shift($this->domains);
  $this->notDomain = array_shift($this->domains);
}