public function HtmlTest::testDecodeEntities in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Component/Utility/HtmlTest.php \Drupal\Tests\Component\Utility\HtmlTest::testDecodeEntities()
- 10 core/tests/Drupal/Tests/Component/Utility/HtmlTest.php \Drupal\Tests\Component\Utility\HtmlTest::testDecodeEntities()
Tests Html::decodeEntities().
@dataProvider providerDecodeEntities @covers ::decodeEntities
File
- core/
tests/ Drupal/ Tests/ Component/ Utility/ HtmlTest.php, line 233
Class
Namespace
Drupal\Tests\Component\UtilityCode
public function testDecodeEntities($text, $expected) {
$this
->assertEquals($expected, Html::decodeEntities($text));
}