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