You are here

protected function DomainViewsAccessTest::enableViewsTestModule in Domain Access 8

Sets up the domain_test module.

Because the schema of domain_test.module is dependent on the test using it, it cannot be enabled normally.

1 call to DomainViewsAccessTest::enableViewsTestModule()
DomainViewsAccessTest::testInactiveDomain in domain/tests/src/Functional/DomainViewsAccessTest.php
Test inactive domain.

File

domain/tests/src/Functional/DomainViewsAccessTest.php, line 68

Class

DomainViewsAccessTest
Tests the domain access plugin for Views.

Namespace

Drupal\Tests\domain\Functional

Code

protected function enableViewsTestModule() {
  \Drupal::service('module_installer')
    ->install([
    'domain_test',
  ]);
  $this
    ->resetAll();
  $this
    ->rebuildContainer();
  $this->container
    ->get('module_handler')
    ->reload();
}