function FieldFilteredMarkupTest::testDisplayAllowedTags
Same name and namespace in other branches
- 10 core/tests/Drupal/Tests/Core/Field/FieldFilteredMarkupTest.php \Drupal\Tests\Core\Field\FieldFilteredMarkupTest::testDisplayAllowedTags()
- 9 core/tests/Drupal/Tests/Core/Field/FieldFilteredMarkupTest.php \Drupal\Tests\Core\Field\FieldFilteredMarkupTest::testdisplayAllowedTags()
- 8.9.x core/tests/Drupal/Tests/Core/Field/FieldFilteredMarkupTest.php \Drupal\Tests\Core\Field\FieldFilteredMarkupTest::testdisplayAllowedTags()
Tests display allowed tags.
@legacy-covers ::displayAllowedTags
File
-
core/
tests/ Drupal/ Tests/ Core/ Field/ FieldFilteredMarkupTest.php, line 63
Class
Namespace
Drupal\Tests\Core\FieldCode
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.