You are here

public function TocFormatterTest::providerConvertNumberToListTypeValue in TOC API 8

Data provider for testConvertNumberToListTypeValue().

See also

testConvertNumberToListTypeValue()

File

tests/src/Unit/TocFormatterTest.php, line 93
Contains \Drupal\Tests\toc_api\Unit\TocFormatterTest.

Class

TocFormatterTest
Tests TOC API formatter.

Namespace

Drupal\Tests\toc_api\Unit

Code

public function providerConvertNumberToListTypeValue() {
  $tests[] = [
    1,
    NULL,
    1,
  ];
  $tests[] = [
    1,
    'decimal',
    '1',
  ];
  $tests[] = [
    1,
    'random',
    '1',
  ];
  $tests[] = [
    0,
    'random',
    '0',
  ];
  $tests[] = [
    1,
    'lower-alpha',
    'a',
  ];
  $tests[] = [
    1,
    'upper-alpha',
    'A',
  ];
  $tests[] = [
    25,
    'lower-alpha',
    'y',
  ];
  $tests[] = [
    26,
    'lower-alpha',
    'z',
  ];
  $tests[] = [
    27,
    'lower-alpha',
    'a',
  ];
  $tests[] = [
    52,
    'lower-alpha',
    'z',
  ];
  $tests[] = [
    53,
    'lower-alpha',
    'a',
  ];
  $tests[] = [
    0,
    'lower-alpha',
    '0',
  ];
  $tests[] = [
    1,
    'lower-roman',
    'i',
  ];
  $tests[] = [
    1,
    'upper-roman',
    'I',
  ];
  $tests[] = [
    0,
    'lower-roman',
    '0',
  ];
  $tests[] = [
    4,
    'lower-roman',
    'iv',
  ];
  return $tests;
}