function UserNameItemTest::providerMaxLength
Same name in other branches
- 11.x core/modules/user/tests/src/Unit/UserNameItemTest.php \Drupal\Tests\user\Unit\UserNameItemTest::providerMaxLength()
Data provider for maximum-lengths.
Return value
array Test cases.
File
-
core/
modules/ user/ tests/ src/ Unit/ UserNameItemTest.php, line 45
Class
- UserNameItemTest
- Defines a test for the UserNameItem field-type.
Namespace
Drupal\Tests\user\UnitCode
public static function providerMaxLength() : array {
return [
'32' => [
32,
],
'255' => [
255,
],
'500' => [
500,
],
'15' => [
15,
],
'64' => [
64,
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.