function ElementsLabelsTest::testFormsInThemeLessEnvironments
Same name in this branch
- main core/modules/system/tests/src/Functional/Form/ElementsLabelsTest.php \Drupal\Tests\system\Functional\Form\ElementsLabelsTest::testFormsInThemeLessEnvironments()
Same name and namespace in other branches
- 11.x core/modules/system/tests/src/Functional/Form/ElementsLabelsTest.php \Drupal\Tests\system\Functional\Form\ElementsLabelsTest::testFormsInThemeLessEnvironments()
- 10 core/modules/system/tests/src/Functional/Form/ElementsLabelsTest.php \Drupal\Tests\system\Functional\Form\ElementsLabelsTest::testFormsInThemeLessEnvironments()
- 9 core/modules/system/tests/src/Functional/Form/ElementsLabelsTest.php \Drupal\Tests\system\Functional\Form\ElementsLabelsTest::testFormsInThemeLessEnvironments()
- 8.9.x core/modules/system/tests/src/Functional/Form/ElementsLabelsTest.php \Drupal\Tests\system\Functional\Form\ElementsLabelsTest::testFormsInThemeLessEnvironments()
- 11.x core/modules/system/tests/src/Kernel/Form/ElementsLabelsTest.php \Drupal\Tests\system\Kernel\Form\ElementsLabelsTest::testFormsInThemeLessEnvironments()
Tests forms in theme-less environments.
File
-
core/
modules/ system/ tests/ src/ Kernel/ Form/ ElementsLabelsTest.php, line 159
Class
- ElementsLabelsTest
- Tests form element labels, required markers and associated output.
Namespace
Drupal\Tests\system\Kernel\FormCode
protected function testFormsInThemeLessEnvironments() : void {
$form = $this->getFormWithLimitedProperties();
$render_service = $this->container
->get('renderer');
// This should not throw any notices.
$render_service->renderInIsolation($form);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.