function UriItemTest::providerMaxLength

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

Data provider for maximum-lengths.

Return value

array Test cases.

File

core/tests/Drupal/Tests/Core/Field/UriItemTest.php, line 45

Class

UriItemTest
Defines a test for the UriItem field-type.

Namespace

Drupal\Tests\Core\Field

Code

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.