You are here

public function TextareaTest::providerTestValueCallback in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Render/Element/TextareaTest.php \Drupal\Tests\Core\Render\Element\TextareaTest::providerTestValueCallback()

Data provider for testValueCallback().

File

core/tests/Drupal/Tests/Core/Render/Element/TextareaTest.php, line 29

Class

TextareaTest
@coversDefaultClass \Drupal\Core\Render\Element\Textarea @group Render

Namespace

Drupal\Tests\Core\Render\Element

Code

public function providerTestValueCallback() {
  $data = [];
  $data[] = [
    NULL,
    FALSE,
  ];
  $data[] = [
    NULL,
    NULL,
  ];
  $data[] = [
    '',
    [
      'test',
    ],
  ];
  $data[] = [
    'test',
    'test',
  ];
  $data[] = [
    '123',
    123,
  ];
  return $data;
}