You are here

Select2KernelTestBase.php in Select 2 8

File

tests/src/Kernel/Select2KernelTestBase.php
View source
<?php

namespace Drupal\Tests\select2\Kernel;

use Drupal\Tests\field\Kernel\FieldKernelTestBase;
use Drupal\Tests\select2\Traits\Select2TestTrait;

/**
 * Base class for Select2 module integration tests.
 */
abstract class Select2KernelTestBase extends FieldKernelTestBase {
  use Select2TestTrait;

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

  /**
   * {@inheritdoc}
   */
  protected function setUp() {
    parent::setUp();
    $this->container
      ->get('router.builder')
      ->rebuild();
    $this
      ->installEntitySchema('entity_test_mulrevpub');
  }

}

Classes

Namesort descending Description
Select2KernelTestBase Base class for Select2 module integration tests.