You are here

protected function ElementsLabelsTest::getFormWithLimitedProperties in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Functional/Form/ElementsLabelsTest.php \Drupal\Tests\system\Functional\Form\ElementsLabelsTest::getFormWithLimitedProperties()

Return a form with element with not all properties defined.

1 call to ElementsLabelsTest::getFormWithLimitedProperties()
ElementsLabelsTest::testFormsInThemeLessEnvironments in core/modules/system/tests/src/Functional/Form/ElementsLabelsTest.php
Tests forms in theme-less environments.

File

core/modules/system/tests/src/Functional/Form/ElementsLabelsTest.php, line 138

Class

ElementsLabelsTest
Tests form element labels, required markers and associated output.

Namespace

Drupal\Tests\system\Functional\Form

Code

protected function getFormWithLimitedProperties() {
  $form = [];
  $form['fieldset'] = [
    '#type' => 'fieldset',
    '#title' => 'Fieldset',
  ];
  return $form;
}