You are here

public function NameUnicodeExtrasTest::patternDataProvider in Name Field 8

Convert names() to PHPUnit compatible format.

Return value

array An array of names.

File

tests/src/Unit/NameUnicodeExtrasTest.php, line 32

Class

NameUnicodeExtrasTest
Tests the unicode additional functions.

Namespace

Drupal\Tests\name\Unit

Code

public function patternDataProvider() {
  $data = [];
  foreach ($this
    ->languageStrings() as $language => $info) {
    $data[] = [
      $language,
      $info['string'],
      $info['count'],
      $info['initials'],
    ];
  }
  return $data;
}