You are here

public function TaxonomyGlossaryTest::testTaxonomyGlossaryView 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::testTaxonomyGlossaryView()
  2. 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\Functional

Code

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());
}