You are here

public function JsonItemTest::providerTestCharacterLimit in JSON Field 8

Data provider.

See also

testCharacterLimit()

File

tests/src/Kernel/JsonItemTest.php, line 96

Class

JsonItemTest
@coversDefaultClass \Drupal\json_field\Plugin\Field\FieldType\JSONItem

Namespace

Drupal\Tests\json_field\Kernel

Code

public function providerTestCharacterLimit() {
  return [
    [
      JSONItem::SIZE_SMALL,
      JSONItem::SIZE_SMALL,
    ],
    [
      JSONItem::SIZE_NORMAL,
      JSONItem::SIZE_NORMAL / 4,
    ],
    [
      JSONItem::SIZE_MEDIUM,
      JSONItem::SIZE_MEDIUM / 4,
    ],
  ];
}