You are here

DomainConfigTest.php in Domain Access 8

File

domain/tests/src/Kernel/DomainConfigTest.php
View source
<?php

namespace Drupal\Tests\domain\Kernel;

use Drupal\KernelTests\KernelTestBase;

/**
 * Tests domain config elements.
 *
 * @group domain
 */
class DomainConfigTest extends KernelTestBase {

  /**
   * Modules to enable.
   *
   * @var array
   */
  public static $modules = [
    'domain',
    'domain_config_schema_test',
  ];

  /**
   * Test setup.
   */
  protected function setUp() {
    parent::setUp();
    $this
      ->installEntitySchema('domain');

    // Install the test domain record & views config.
    $this
      ->installConfig('domain_config_schema_test');
  }

  /**
   * Dummy test method to ensure config gets installed.
   */
  public function testRun() {
    $this
      ->assertTrue(TRUE);
  }

}

Classes

Namesort descending Description
DomainConfigTest Tests domain config elements.