You are here

public function XssTest::testFilterXssAdminNotNormalized in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Component/Utility/XssTest.php \Drupal\Tests\Component\Utility\XssTest::testFilterXssAdminNotNormalized()
  2. 10 core/tests/Drupal/Tests/Component/Utility/XssTest.php \Drupal\Tests\Component\Utility\XssTest::testFilterXssAdminNotNormalized()

Tests the loose, admin HTML filter.

@dataProvider providerTestFilterXssAdminNotNormalized

Parameters

string $value: The value to filter.

string $expected: The expected result.

string $message: The assertion message to display upon failure.

File

core/tests/Drupal/Tests/Component/Utility/XssTest.php, line 555

Class

XssTest
XSS Filtering tests.

Namespace

Drupal\Tests\Component\Utility

Code

public function testFilterXssAdminNotNormalized($value, $expected, $message) {
  $this
    ->assertNotNormalized(Xss::filterAdmin($value), $expected, $message);
}