public function XssTest::testFilterXssAdminNotNormalized in Drupal 9
Same name and namespace in other branches
- 8 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 559
Class
- XssTest
- XSS Filtering tests.
Namespace
Drupal\Tests\Component\UtilityCode
public function testFilterXssAdminNotNormalized($value, $expected, $message) {
$this
->assertNotNormalized(Xss::filterAdmin($value), $expected, $message);
}