function StringFieldTest::testTextfieldWidgets

Same name in other branches
  1. 9 core/modules/field/tests/src/Functional/String/StringFieldTest.php \Drupal\Tests\field\Functional\String\StringFieldTest::testTextfieldWidgets()
  2. 8.9.x core/modules/field/tests/src/Functional/String/StringFieldTest.php \Drupal\Tests\field\Functional\String\StringFieldTest::testTextfieldWidgets()
  3. 11.x core/modules/field/tests/src/Functional/FunctionalString/StringFieldTest.php \Drupal\Tests\field\Functional\FunctionalString\StringFieldTest::testTextfieldWidgets()

Tests widgets.

1 method overrides StringFieldTest::testTextfieldWidgets()
TextFieldTest::testTextfieldWidgets in core/modules/text/tests/src/Functional/TextFieldTest.php
Tests widgets.

File

core/modules/field/tests/src/Functional/FunctionalString/StringFieldTest.php, line 56

Class

StringFieldTest
Tests the creation of string fields.

Namespace

Drupal\Tests\field\Functional\FunctionalString

Code

public function testTextfieldWidgets() : void {
    $this->_testTextfieldWidgets('string', 'string_textfield');
    $this->_testTextfieldWidgets('string_long', 'string_textarea');
}

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