You are here

public function XssTest::testNoDoubleEscaping in Drupal 8

Same name and namespace in other branches
  1. 9 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\Functional

Code

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('<');
}