diff --git a/core/tests/Drupal/Tests/Component/Utility/HtmlTest.php b/core/tests/Drupal/Tests/Component/Utility/HtmlTest.php index a60ea90..18b07f7 100644 --- a/core/tests/Drupal/Tests/Component/Utility/HtmlTest.php +++ b/core/tests/Drupal/Tests/Component/Utility/HtmlTest.php @@ -210,4 +210,45 @@ public function providerTestHtmlGetId() { ); } + /** + * Tests Html::decodeEntities(). + * + * @dataProvider providerDecodeEntities + * @covers ::decodeEntities + */ + public function testDecodeEntities($text, $expected) { + $this->assertEquals($expected, Html::decodeEntities($text)); + } + + /** + * Data provider for testDecodeEntities(). + * + * @see testCheckPlain() + */ + public function providerDecodeEntities() { + return array( + array('Drupal', 'Drupal'), + array('