You are here

public function TwigConvertTest::providerTestMd5Values in Twig Tools 8

Provides test data for testMd5Value.

Return value

array An array of test data and their md5 hash equivalents.

File

tests/src/Unit/TwigConvertTest.php, line 215

Class

TwigConvertTest
Tests to ensure conversions filters work correctly.

Namespace

Drupal\Tests\twig_tools\Unit

Code

public function providerTestMd5Values() {
  return [
    [
      "{{ '42'|md5 }}",
      'a1d0c6e83f027327d8461063f4ac58a6',
    ],
    [
      "{{ '4.2'|md5 }}",
      '8653d5c7898950016e5d019df6815626',
    ],
    [
      "{{ '+42'|md5 }}",
      'deda8ddbf790f3682d5cf69d237bb0b2',
    ],
    [
      "{{ '-42'|md5 }}",
      '8dfcb89fd8620e3e7fb6a03a53f307dc',
    ],
    [
      "{{ '42'|md5 }}",
      'a1d0c6e83f027327d8461063f4ac58a6',
    ],
    [
      "{{ 'Test'|md5 }}",
      '0cbc6611f5540bd0809a388dc95a615b',
    ],
    [
      "{{ '0'|md5 }}",
      'cfcd208495d565ef66e7dff9f98764da',
    ],
    [
      "{{ '0'|md5 }}",
      'cfcd208495d565ef66e7dff9f98764da',
    ],
    [
      "{{ '1'|md5 }}",
      'c4ca4238a0b923820dcc509a6f75849b',
    ],
  ];
}