You are here

public function MultipleSelectsWidgetTest::testWidgetDefinitionFieldTypes in Multiple Selects 8

Test that the correct field_types are configured.

File

tests/src/Kernel/MultipleSelectsWidgetTest.php, line 41

Class

MultipleSelectsWidgetTest
Tests the multiple select widget.

Namespace

Drupal\Tests\multiple_selects\Kernel

Code

public function testWidgetDefinitionFieldTypes() {
  $widget_definition = $this->fieldWidgetDefinitionManager
    ->getDefinition('multiple_options_select');
  $this
    ->assertEquals([
    'entity_reference',
    'list_integer',
    'list_float',
    'list_string',
  ], $widget_definition['field_types']);
}