function MultipleWidgetFormTest::testFieldFormMultipleWidgetAlterSingleValues

Same name in other branches
  1. 11.x core/modules/field/tests/src/Functional/MultipleWidgetFormTest.php \Drupal\Tests\field\Functional\MultipleWidgetFormTest::testFieldFormMultipleWidgetAlterSingleValues()

Tests hook_field_widget_complete_form_alter() with single value elements.

File

core/modules/field/tests/src/Functional/MultipleWidgetFormTest.php, line 191

Class

MultipleWidgetFormTest
Tests field form handling.

Namespace

Drupal\Tests\field\Functional

Code

public function testFieldFormMultipleWidgetAlterSingleValues() : void {
    $this->widgetAlterTest('hook_field_widget_complete_form_alter', 'test_field_widget_multiple_single_value');
}

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