You are here

public function TaxonomyGlossaryTest::testTaxonomyGlossaryView in Drupal 8

Same name and namespace in other branches
  1. 9 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
    ->assertText($this->taxonomyTerms[0]
    ->getName());
}