public function TaxonomyGlossaryTest::testTaxonomyGlossaryView in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/tests/src/Functional/TaxonomyGlossaryTest.php \Drupal\Tests\views\Functional\TaxonomyGlossaryTest::testTaxonomyGlossaryView()
- 10 core/modules/views/tests/src/Functional/TaxonomyGlossaryTest.php \Drupal\Tests\views\Functional\TaxonomyGlossaryTest::testTaxonomyGlossaryView()
Tests a taxonomy glossary view.
File
- core/
modules/ views/ tests/ src/ Functional/ TaxonomyGlossaryTest.php, line 57
Class
- TaxonomyGlossaryTest
- Tests glossary functionality of taxonomy views.
Namespace
Drupal\Tests\views\FunctionalCode
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
->assertSession()
->pageTextContains($this->taxonomyTerms[0]
->getName());
}