You are here

public function TwigSanitizeTest::providerTestCleanClassArrayValues in Twig Tools 8

Provides test data for providerTestCleanClassArrayValues.

Return value

array An array of test data their cleaned class values.

File

tests/src/Unit/TwigSanitizeTest.php, line 48

Class

TwigSanitizeTest
Tests to ensure sanitization filters work correctly.

Namespace

Drupal\Tests\twig_tools\Unit

Code

public function providerTestCleanClassArrayValues() {
  return [
    [
      "{{-\n         [\n        'abcdefghijklmnopqrstuvwxyz_ABCDEFGHIJKLMNOPQRSTUVWXYZ-0123456789',\n        '¡¢£¤¥',\n        'css__identifier__with__double__underscores',\n        'invalid !\"#\$%&\\'()*+,./:;<=>?@[\\]^`{|}~ identifier',\n        'block__element--modifier',\n      ]|clean_class_array|join(' ') -}}",
      "abcdefghijklmnopqrstuvwxyz-abcdefghijklmnopqrstuvwxyz-0123456789 ¡¢£¤¥ css__identifier__with__double__underscores invalid---identifier block__element--modifier",
    ],
  ];
}