public function TaxonomyDefaultArgumentTest::testTermTitleEscaping in Drupal 8
Same name and namespace in other branches
- 9 core/modules/taxonomy/tests/src/Functional/Views/TaxonomyDefaultArgumentTest.php \Drupal\Tests\taxonomy\Functional\Views\TaxonomyDefaultArgumentTest::testTermTitleEscaping()
 
Tests escaping of page title when the taxonomy plugin provides it.
File
- core/
modules/ taxonomy/ tests/ src/ Functional/ Views/ TaxonomyDefaultArgumentTest.php, line 27  
Class
- TaxonomyDefaultArgumentTest
 - Tests the representative node relationship for terms.
 
Namespace
Drupal\Tests\taxonomy\Functional\ViewsCode
public function testTermTitleEscaping() {
  $this->term1
    ->setName('<em>Markup</em>')
    ->save();
  $this
    ->drupalGet('taxonomy_default_argument_test/' . $this->term1
    ->id());
  $this
    ->assertEscaped($this->term1
    ->label());
}