You are here

public function WebformHtmlHelperTest::providerHasBlockTags in Webform 8.5

Same name and namespace in other branches
  1. 6.x tests/src/Unit/Utility/WebformHtmlHelperTest.php \Drupal\Tests\webform\Unit\Utility\WebformHtmlHelperTest::providerHasBlockTags()

Data provider for testHasBlockTags().

See also

testHasBlockTags()

File

tests/src/Unit/Utility/WebformHtmlHelperTest.php, line 149

Class

WebformHtmlHelperTest
Tests webform HTML helper.

Namespace

Drupal\Tests\webform\Unit\Utility

Code

public function providerHasBlockTags() {
  $tests = [];
  $tests[] = [
    'some text',
    FALSE,
  ];
  $tests[] = [
    '<b>some text</b>',
    FALSE,
  ];
  $tests[] = [
    '<p>some text</p>',
    TRUE,
  ];
  $tests[] = [
    'some text<br />',
    TRUE,
  ];
  return $tests;
}