You are here

public function VueBlockTest::convertKebabCaseProvider in Decoupled Blocks: Vue.js 8

Provider for testConvertKebabCase()

File

tests/src/Unit/Plugin/Block/VueBlockTest.php, line 267

Class

VueBlockTest
@coversDefaultClass \Drupal\pdb_vue\Plugin\Block\VueBlock @group pdb_vue

Namespace

Drupal\Tests\pdb_vue\Unit\Plugin\Block

Code

public function convertKebabCaseProvider() {
  return [
    [
      'simpleTest',
      'simple-test',
    ],
    [
      'easy',
      'easy',
    ],
    [
      'HTML',
      'html',
    ],
    [
      'simpleXML',
      'simple-xml',
    ],
    [
      'PDFLoad',
      'pdf-load',
    ],
    [
      'startMIDDLELast',
      'start-middle-last',
    ],
    [
      'AString',
      'a-string',
    ],
    [
      'Some4Numbers234',
      'some4-numbers234',
    ],
    [
      'TEST123String',
      'test123-string',
    ],
    [
      'hello_world',
      'hello_world',
    ],
    [
      'hello_-world',
      'hello_-world',
    ],
    [
      '-hello-world-',
      'hello-world-',
    ],
    [
      'hello_World',
      'hello_-world',
    ],
    [
      'HelloWorld',
      'hello-world',
    ],
    [
      'helloWorldFoo',
      'hello-world-foo',
    ],
    [
      'hello-world',
      'hello-world',
    ],
    [
      'myHTMLFiLe',
      'my-html-fi-le',
    ],
    [
      'aBaBaB',
      'a-ba-ba-b',
    ],
    [
      'BaBaBa',
      'ba-ba-ba',
    ],
    [
      'libC',
      'lib-c',
    ],
  ];
}