function EntityFormDisplayValidationTest::testMultilineTextFieldWidgetTextAreaPlaceholder
Same name and namespace in other branches
- 11.x core/tests/Drupal/KernelTests/Core/Entity/EntityFormDisplayValidationTest.php \Drupal\KernelTests\Core\Entity\EntityFormDisplayValidationTest::testMultilineTextFieldWidgetTextAreaPlaceholder()
Tests validation of entity form display component's widget settings.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityFormDisplayValidationTest.php, line 87
Class
- EntityFormDisplayValidationTest
- Tests validation of entity_form_display entities.
Namespace
Drupal\KernelTests\Core\EntityCode
public function testMultilineTextFieldWidgetTextAreaPlaceholder() : void {
assert($this->entity instanceof EntityFormDisplayInterface);
$this->entity
->setComponent('novel', [
'type' => 'text_textarea',
'region' => 'content',
'settings' => [
'rows' => 5,
'placeholder' => "Multi\nLine",
],
'third_party_settings' => [],
]);
$this->assertValidationErrors([]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.