enableViewsTestModule(); /** @var \Drupal\taxonomy\Entity\Vocabulary $vocabulary */ $vocabulary = $this->createVocabulary(); for ($i = 0; $i < 10; $i++) { $this->taxonomyTerms[] = $this->createTerm($vocabulary); } } /** * Tests a taxonomy glossary view. */ public function testTaxonomyGlossaryView() { // Go the taxonomy glossary page for the first term. $this->drupalGet('test_taxonomy_glossary/' . substr($this->taxonomyTerms[0]->getName(), 0, 1)); $this->assertText($this->taxonomyTerms[0]->getName()); } }