function XssTest::testFilterXssAdminNotNormalized

Tests the loose, admin HTML filter.

Attributes

#[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 592

Class

XssTest
XSS Filtering tests.

Namespace

Drupal\Tests\Component\Utility

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.