public function 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

drupal/core/tests/Drupal/Tests/Component/Utility/XssTest.php, line 500
Contains \Drupal\Tests\Component\Utility\XssTest.

Class

XssTest
Tests the Xss utility.

Namespace

Drupal\Tests\Component\Utility

Code

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