You are here

protected function DomainHookTest::setUp in Domain Access 8

Test setup.

Overrides KernelTestBase::setUp

File

domain/tests/src/Kernel/DomainHookTest.php, line 73

Class

DomainHookTest
Tests domain hooks documented in domain.api.php.

Namespace

Drupal\Tests\domain\Kernel

Code

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

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

  // Get the services.
  $this->domainStorage = \Drupal::entityTypeManager()
    ->getStorage('domain');
  $this->currentUser = \Drupal::service('current_user');
  $this->moduleHandler = \Drupal::service('module_handler');
}