You are here

class DefaultComponentsTest in Form Builder 7.2

Test the default component configuration of form builder element types.

Hierarchy

  • class \Drupal\form_builder_webform\DefaultComponentsTest extends \Drupal\form_builder_webform\DrupalUnitTestCase

Expanded class hierarchy of DefaultComponentsTest

File

modules/webform/tests/DefaultComponentsTest.php, line 10

Namespace

Drupal\form_builder_webform
View source
class DefaultComponentsTest extends \DrupalUnitTestCase {

  /**
   * Test that the default markup has a text-format.
   */
  public function testMarkupTextFormat() {
    $types = Loader::instance()
      ->getElementTypeInfo('webform', NULL);
    $component = $types['markup']['default']['#webform_component'];
    $element = webform_component_invoke($component['type'], 'render', $component);
    $this
      ->assertNotEmpty($element['#format']);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DefaultComponentsTest::testMarkupTextFormat public function Test that the default markup has a text-format.