public function HtmlTest::testEscape in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Component/Utility/HtmlTest.php \Drupal\Tests\Component\Utility\HtmlTest::testEscape()
- 9 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 278
Class
Namespace
Drupal\Tests\Component\UtilityCode
public function testEscape($expected, $text) {
$this
->assertEquals($expected, Html::escape($text));
}