function TaxonomyTermArgumentDepthTest::testTermWithDepthArgumentTitleEscaping
Same name in this branch
- main core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermArgumentDepthTest.php \Drupal\Tests\taxonomy\Functional\Views\TaxonomyTermArgumentDepthTest::testTermWithDepthArgumentTitleEscaping()
Same name and namespace in other branches
- 11.x core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermArgumentDepthTest.php \Drupal\Tests\taxonomy\Functional\Views\TaxonomyTermArgumentDepthTest::testTermWithDepthArgumentTitleEscaping()
- 10 core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermArgumentDepthTest.php \Drupal\Tests\taxonomy\Functional\Views\TaxonomyTermArgumentDepthTest::testTermWithDepthArgumentTitleEscaping()
- 9 core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermArgumentDepthTest.php \Drupal\Tests\taxonomy\Functional\Views\TaxonomyTermArgumentDepthTest::testTermWithDepthArgumentTitleEscaping()
- 8.9.x core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermArgumentDepthTest.php \Drupal\Tests\taxonomy\Functional\Views\TaxonomyTermArgumentDepthTest::testTermWithDepthArgumentTitleEscaping()
Tests title escaping when the taxonomy argument provides it.
File
-
core/
modules/ taxonomy/ tests/ src/ Kernel/ Views/ TaxonomyTermArgumentDepthTest.php, line 174
Class
- TaxonomyTermArgumentDepthTest
- Test the taxonomy term with depth argument.
Namespace
Drupal\Tests\taxonomy\Kernel\ViewsCode
public function testTermWithDepthArgumentTitleEscaping() : void {
$this->terms[0]
->setName('<em>First</em>')
->save();
$this->setUpCurrentUser(permissions: [
'access content',
]);
$this->drupalGet('test_argument_taxonomy_index_tid_depth/' . $this->terms[0]
->id());
$this->assertSession()
->assertEscaped($this->terms[0]
->label());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.