You are here

TaxonomyEntityIndexTestBase.php in Taxonomy Entity Index 8

File

tests/src/Functional/Views/TaxonomyEntityIndexTestBase.php
View source
<?php

namespace Drupal\Tests\taxonomy_entity_index\Functional\Views;

use Drupal\Tests\taxonomy\Functional\Views\TaxonomyTestBase;
use Drupal\views\Tests\ViewTestData;

/**
 * Base class for all taxonomy tests.
 */
abstract class TaxonomyEntityIndexTestBase extends TaxonomyTestBase {

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

  /**
   * {@inheritdoc}
   */
  protected function setUp($import_test_views = TRUE) {
    parent::setUp($import_test_views);
    if ($import_test_views) {
      ViewTestData::createTestViews(get_class($this), [
        'taxonomy_entity_index_test_views',
      ]);
    }
  }

}

Classes

Namesort descending Description
TaxonomyEntityIndexTestBase Base class for all taxonomy tests.