You are here

public function HtmlTest::testDecodeEntities in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 229
Contains \Drupal\Tests\Component\Utility\HtmlTest.

Class

HtmlTest
Tests \Drupal\Component\Utility\Html.

Namespace

Drupal\Tests\Component\Utility

Code

public function testDecodeEntities($text, $expected) {
  $this
    ->assertEquals($expected, Html::decodeEntities($text));
}