function StringItemTest::providerMaxLength
Same name in other branches
- 11.x 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\FieldCode
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.