You are here

public function TextFieldTest::getFieldTypeProvider in Drupal 10

Same name in this branch
  1. 10 core/modules/text/tests/src/Unit/Migrate/d6/TextFieldTest.php \Drupal\Tests\text\Unit\Migrate\d6\TextFieldTest::getFieldTypeProvider()
  2. 10 core/modules/text/tests/src/Unit/Plugin/migrate/field/d6/TextFieldTest.php \Drupal\Tests\text\Unit\Plugin\migrate\field\d6\TextFieldTest::getFieldTypeProvider()
Same name and namespace in other branches
  1. 8 core/modules/text/tests/src/Unit/Plugin/migrate/field/d6/TextFieldTest.php \Drupal\Tests\text\Unit\Plugin\migrate\field\d6\TextFieldTest::getFieldTypeProvider()
  2. 9 core/modules/text/tests/src/Unit/Plugin/migrate/field/d6/TextFieldTest.php \Drupal\Tests\text\Unit\Plugin\migrate\field\d6\TextFieldTest::getFieldTypeProvider()

Data provider for testGetFieldType().

File

core/modules/text/tests/src/Unit/Plugin/migrate/field/d6/TextFieldTest.php, line 125

Class

TextFieldTest
@coversDefaultClass \Drupal\text\Plugin\migrate\field\d6\TextField @group text

Namespace

Drupal\Tests\text\Unit\Plugin\migrate\field\d6

Code

public function getFieldTypeProvider() {
  return [
    [
      'string_long',
      'text_textfield',
      [
        'text_processing' => FALSE,
      ],
    ],
    [
      'string',
      'text_textfield',
      [
        'text_processing' => FALSE,
        'max_length' => 128,
      ],
    ],
    [
      'string_long',
      'text_textfield',
      [
        'text_processing' => FALSE,
        'max_length' => 4096,
      ],
    ],
    [
      'text_long',
      'text_textfield',
      [
        'text_processing' => TRUE,
      ],
    ],
    [
      'text',
      'text_textfield',
      [
        'text_processing' => TRUE,
        'max_length' => 128,
      ],
    ],
    [
      'text_long',
      'text_textfield',
      [
        'text_processing' => TRUE,
        'max_length' => 4096,
      ],
    ],
    [
      'list_string',
      'optionwidgets_buttons',
    ],
    [
      'list_string',
      'optionwidgets_select',
    ],
    [
      'boolean',
      'optionwidgets_onoff',
    ],
    [
      'text_long',
      'text_textarea',
      [
        'text_processing' => TRUE,
      ],
    ],
    [
      'string_long',
      'text_textarea',
      [
        'text_processing' => FALSE,
      ],
    ],
    [
      NULL,
      'undefined',
    ],
  ];
}