You are here

protected function TaxonomyEntityIndexEntityTest::setUp in Taxonomy Entity Index 8

Overrides TaxonomyEntityIndexKernelTestBase::setUp

File

tests/src/Kernel/TaxonomyEntityIndexEntityTest.php, line 42

Class

TaxonomyEntityIndexEntityTest
Defines a class for testing basic functionality of taxonomy_entity_index.

Namespace

Drupal\Tests\taxonomy_entity_index\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installConfig([
    'node',
    'filter',
  ]);
  $this
    ->installEntitySchema('node');
  $this
    ->createContentType([
    'type' => 'page',
  ]);
  $this
    ->setupTermField('node', 'page', 'termz');
  $this->database = \Drupal::service('database');
}