public function XssTest::providerTestFilterXssNormalized

Data provider for testFilterXssNormalized().

Return value

array An array of arrays containing strings:

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

See also

testFilterXssNormalized()

File

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

Class

XssTest
Tests the Xss utility.

Namespace

Drupal\Tests\Component\Utility

Code

public function providerTestFilterXssNormalized() {
  return array(
    array(
      "Who's Online",
      "who's online",
      'HTML filter -- html entity number',
    ),
    array(
      "Who's Online",
      "who's online",
      'HTML filter -- encoded html entity number',
    ),
    array(
      "Who' Online",
      "who' online",
      'HTML filter -- double encoded html entity number',
    ),
  );
}