You are here

public function HtmlEntityEncodeTest::testHtmlEntityEncode in Tamper 8

Test HTML entity encode.

File

tests/src/Unit/Plugin/Tamper/HtmlEntityEncodeTest.php, line 26

Class

HtmlEntityEncodeTest
Tests the html entity encode plugin.

Namespace

Drupal\Tests\tamper\Unit\Plugin\Tamper

Code

public function testHtmlEntityEncode() {
  $this
    ->assertEquals('<html>asdfsadfasf<b>asfasf</b></html>', $this->plugin
    ->tamper('<html>asdfsadfasf<b>asfasf</b></html>'));
}