You are here

protected function TaxonomyGlossaryTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Functional/TaxonomyGlossaryTest.php \Drupal\Tests\views\Functional\TaxonomyGlossaryTest::setUp()

Overrides ViewTestBase::setUp

File

core/modules/views/tests/src/Functional/TaxonomyGlossaryTest.php, line 42

Class

TaxonomyGlossaryTest
Tests glossary functionality of taxonomy views.

Namespace

Drupal\Tests\views\Functional

Code

protected function setUp($import_test_views = TRUE) : void {
  parent::setUp($import_test_views);
  $this
    ->enableViewsTestModule();

  /** @var \Drupal\taxonomy\Entity\Vocabulary $vocabulary */
  $vocabulary = $this
    ->createVocabulary();
  for ($i = 0; $i < 10; $i++) {
    $this->taxonomyTerms[] = $this
      ->createTerm($vocabulary);
  }
}