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

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

Class

XssTest
Tests the Xss utility.

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.',
    ),
  );
}