You are here

public function TextFieldTest::getFieldTypeProvider in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/text/tests/src/Unit/Migrate/TextFieldTest.php \Drupal\Tests\text\Unit\Migrate\TextFieldTest::getFieldTypeProvider()

Data provider for testGetFieldType().

File

core/modules/text/tests/src/Unit/Migrate/TextFieldTest.php, line 128
Contains \Drupal\Tests\text\Unit\Migrate\TextFieldTest.

Class

TextFieldTest
@coversDefaultClass \Drupal\text\Plugin\migrate\cckfield\TextField @group text

Namespace

Drupal\Tests\text\Unit\Migrate

Code

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