You are here

public function TaxonomyDefaultArgumentTest::testTermTitleEscaping in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/taxonomy/src/Tests/Views/TaxonomyDefaultArgumentTest.php \Drupal\taxonomy\Tests\Views\TaxonomyDefaultArgumentTest::testTermTitleEscaping()

Tests escaping of page title when the taxonomy plugin provides it.

File

core/modules/taxonomy/src/Tests/Views/TaxonomyDefaultArgumentTest.php, line 66
Contains \Drupal\taxonomy\Tests\Views\TaxonomyDefaultArgumentTest.

Class

TaxonomyDefaultArgumentTest
Tests the representative node relationship for terms.

Namespace

Drupal\taxonomy\Tests\Views

Code

public function testTermTitleEscaping() {
  $this->term1
    ->setName('<em>Markup</em>')
    ->save();
  $this
    ->drupalGet('taxonomy_default_argument_test/' . $this->term1
    ->id());
  $this
    ->assertEscaped($this->term1
    ->label());
}