You are here

public function DefaultComponentsTest::testMarkupTextFormat in Form Builder 7.2

Test that the default markup has a text-format.

File

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

Class

DefaultComponentsTest
Test the default component configuration of form builder element types.

Namespace

Drupal\form_builder_webform

Code

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