You are here

protected function DomainAliasDomainDeleteTest::setUp in Domain Access 8

Test setup.

Overrides DomainTestBase::setUp

File

domain_alias/tests/src/Kernel/DomainAliasDomainDeleteTest.php, line 41

Class

DomainAliasDomainDeleteTest
Tests that aliases are deleted on domain delete.

Namespace

Drupal\Tests\domain_alias\Kernel

Code

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

  // Create a domain.
  $this
    ->domainCreateTestDomains(2);

  // Get the services.
  $this->domainStorage = \Drupal::entityTypeManager()
    ->getStorage('domain');
  $this->aliasStorage = \Drupal::entityTypeManager()
    ->getStorage('domain_alias');
}