function TextItemBaseTest::providerTextFieldSampleValue

Same name and namespace in other branches
  1. 11.x core/modules/text/tests/src/Kernel/TextItemBaseTest.php \Drupal\Tests\text\Kernel\TextItemBaseTest::providerTextFieldSampleValue()
  2. 10 core/modules/text/tests/src/Kernel/TextItemBaseTest.php \Drupal\Tests\text\Kernel\TextItemBaseTest::providerTextFieldSampleValue()
  3. 9 core/modules/text/tests/src/Kernel/TextItemBaseTest.php \Drupal\Tests\text\Kernel\TextItemBaseTest::providerTextFieldSampleValue()

Data provider for testTextFieldSampleValue.

File

core/modules/text/tests/src/Kernel/TextItemBaseTest.php, line 72

Class

TextItemBaseTest
Tests TextItemBase.

Namespace

Drupal\Tests\text\Kernel

Code

public static function providerTextFieldSampleValue() : array {
  return [
    [
      1,
      [
        'format1',
      ],
      'format1',
    ],
    [
      2,
      [
        'format2',
      ],
      'format2',
    ],
    [
      3,
      [
        'format1',
        'format2',
      ],
      'format1',
    ],
    [
      4,
      [
        'plain_text',
        'format1',
      ],
      'plain_text',
    ],
    [
      5,
      [
        'format1',
        'plain_text',
      ],
      'plain_text',
    ],
    [
      6,
      [],
      'plain_text',
    ],
  ];
}

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