You are here

public function HtmlTest::testEscape 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::testEscape()

Tests Html::escape().

@dataProvider providerEscape @covers ::escape

File

core/tests/Drupal/Tests/Component/Utility/HtmlTest.php, line 270
Contains \Drupal\Tests\Component\Utility\HtmlTest.

Class

HtmlTest
Tests \Drupal\Component\Utility\Html.

Namespace

Drupal\Tests\Component\Utility

Code

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