function XssTest::testNoDoubleEscaping
Same name in other branches
- 9 core/modules/views_ui/tests/src/Functional/XssTest.php \Drupal\Tests\views_ui\Functional\XssTest::testNoDoubleEscaping()
- 10 core/modules/views_ui/tests/src/Functional/XssTest.php \Drupal\Tests\views_ui\Functional\XssTest::testNoDoubleEscaping()
- 11.x core/modules/views_ui/tests/src/Functional/XssTest.php \Drupal\Tests\views_ui\Functional\XssTest::testNoDoubleEscaping()
Checks the admin UI for double escaping.
File
-
core/
modules/ views_ui/ tests/ src/ Functional/ XssTest.php, line 38
Class
- XssTest
- Tests the Xss vulnerability.
Namespace
Drupal\Tests\views_ui\FunctionalCode
public function testNoDoubleEscaping() {
$this->drupalGet('admin/structure/views');
$this->assertNoEscaped('<');
$this->drupalGet('admin/structure/views/view/sa_contrib_2013_035');
$this->assertNoEscaped('<');
$this->drupalGet('admin/structure/views/nojs/handler/sa_contrib_2013_035/page_1/header/area');
$this->assertNoEscaped('<');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.