DefaultComponentsTest.php in Form Builder 7.2
File
modules/webform/tests/DefaultComponentsTest.php
View source
<?php
namespace Drupal\form_builder_webform;
use Drupal\form_builder\Loader;
class DefaultComponentsTest extends \DrupalUnitTestCase {
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']);
}
}