function StringItemTest::providerMaxLength

Same name and namespace in other branches
  1. 10 core/tests/Drupal/Tests/Core/Field/StringItemTest.php \Drupal\Tests\Core\Field\StringItemTest::providerMaxLength()

Data provider for maximum-lengths.

Return value

array Test cases.

File

core/tests/Drupal/Tests/Core/Field/StringItemTest.php, line 55

Class

StringItemTest
Defines a test for the StringItem field-type.

Namespace

Drupal\Tests\Core\Field

Code

public static function providerMaxLength() : array {
  return [
    '32' => [
      32,
    ],
    '255' => [
      255,
    ],
    '500' => [
      500,
    ],
    '15' => [
      15,
    ],
    '4' => [
      4,
    ],
    '64' => [
      64,
    ],
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.