1<?php 2 3namespace Drupal\Tests\taxonomy\Functional\Views; 4 5/** 6 * Tests the representative node relationship for terms. 7 * 8 * @group taxonomy 9 */ 10class TaxonomyDefaultArgumentTest extends TaxonomyTestBase { 11 12 /** 13 * Views used by this test. 14 * 15 * @var array 16 */ 17 public static $testViews = ['taxonomy_default_argument_test']; 18 19 /** 20 * {@inheritdoc} 21 */ 22 protected $defaultTheme = 'stark'; 23 24 /** 25 * Tests escaping of page title when the taxonomy plugin provides it. 26 */ 27 public function testTermTitleEscaping() { 28 $this->term1->setName('<em>Markup</em>')->save(); 29 $this->drupalGet('taxonomy_default_argument_test/' . $this->term1->id()); 30 $this->assertEscaped($this->term1->label()); 31 } 32 33} 34