Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / core / modules / taxonomy / tests / src / Functional / Views / TaxonomyDefaultArgumentTest.php
1 <?php
2
3 namespace Drupal\Tests\taxonomy\Functional\Views;
4
5 /**
6  * Tests the representative node relationship for terms.
7  *
8  * @group taxonomy
9  */
10 class 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    * Tests escaping of page title when the taxonomy plugin provides it.
21    */
22   public function testTermTitleEscaping() {
23     $this->term1->setName('<em>Markup</em>')->save();
24     $this->drupalGet('taxonomy_default_argument_test/' . $this->term1->id());
25     $this->assertEscaped($this->term1->label());
26   }
27
28 }