function ElementsLabelsTest::testFormsInThemeLessEnvironments

Tests forms in theme-less environments.

File

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

Class

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

Namespace

Drupal\Tests\system\Functional\Form

Code

public function testFormsInThemeLessEnvironments() {
  $form = $this->getFormWithLimitedProperties();
  $render_service = $this->container
    ->get('renderer');
  // This should not throw any notices.
  $render_service->renderPlain($form);
}

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