You are here

public function ElementsLabelsTest::testFormsInThemeLessEnvironments in Drupal 8

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

Test forms in theme-less environments.

File

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

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);
}