function FieldFilteredMarkupTest::testDisplayAllowedTags

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Field/FieldFilteredMarkupTest.php \Drupal\Tests\Core\Field\FieldFilteredMarkupTest::testdisplayAllowedTags()
  2. 8.9.x core/tests/Drupal/Tests/Core/Field/FieldFilteredMarkupTest.php \Drupal\Tests\Core\Field\FieldFilteredMarkupTest::testdisplayAllowedTags()
  3. 10 core/tests/Drupal/Tests/Core/Field/FieldFilteredMarkupTest.php \Drupal\Tests\Core\Field\FieldFilteredMarkupTest::testDisplayAllowedTags()

@covers ::displayAllowedTags

File

core/tests/Drupal/Tests/Core/Field/FieldFilteredMarkupTest.php, line 55

Class

FieldFilteredMarkupTest
@coversDefaultClass \Drupal\Core\Field\FieldFilteredMarkup @group Field

Namespace

Drupal\Tests\Core\Field

Code

public function testDisplayAllowedTags() : void {
    $expected = '<a> <b> <big> <code> <del> <em> <i> <ins> <pre> <q> <small> <span> <strong> <sub> <sup> <tt> <ol> <ul> <li> <p> <br> <img>';
    $this->assertSame($expected, FieldFilteredMarkup::displayAllowedTags());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.