You are here

public function XssTest::testNoDoubleEscaping in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views_ui/src/Tests/XssTest.php \Drupal\views_ui\Tests\XssTest::testNoDoubleEscaping()

Checks the admin UI for double escaping.

File

core/modules/views_ui/src/Tests/XssTest.php, line 39
Contains \Drupal\views_ui\Tests\XssTest.

Class

XssTest
Tests the Xss vulnerability.

Namespace

Drupal\views_ui\Tests

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