You are here

public function XssTest::providerTestFilterXssAdminNotNormalized in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Component/Utility/XssTest.php \Drupal\Tests\Component\Utility\XssTest::providerTestFilterXssAdminNotNormalized()

Data provider for testFilterXssAdminNotNormalized().

Return value

array An array of arrays containing strings:

  • The value to filter.
  • The value to expect after filtering.
  • The assertion message.

See also

testFilterXssAdminNotNormalized()

File

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

Class

XssTest
XSS Filtering tests.

Namespace

Drupal\Tests\Component\Utility

Code

public function providerTestFilterXssAdminNotNormalized() {
  return array(
    // DRUPAL-SA-2008-044
    array(
      '<object />',
      'object',
      'Admin HTML filter -- should not allow object tag.',
    ),
    array(
      '<script />',
      'script',
      'Admin HTML filter -- should not allow script tag.',
    ),
  );
}