TaxonomyDefaultArgumentTest.php in Drupal 8
File
core/modules/taxonomy/tests/src/Functional/Views/TaxonomyDefaultArgumentTest.php
View source
<?php
namespace Drupal\Tests\taxonomy\Functional\Views;
class TaxonomyDefaultArgumentTest extends TaxonomyTestBase {
public static $testViews = [
'taxonomy_default_argument_test',
];
protected $defaultTheme = 'stark';
public function testTermTitleEscaping() {
$this->term1
->setName('<em>Markup</em>')
->save();
$this
->drupalGet('taxonomy_default_argument_test/' . $this->term1
->id());
$this
->assertEscaped($this->term1
->label());
}
}