public function SafeMarkupKernelTest::testSafeMarkupUri in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/KernelTests/Component/Utility/SafeMarkupKernelTest.php \Drupal\KernelTests\Component\Utility\SafeMarkupKernelTest::testSafeMarkupUri()
Tests URL ":placeholders" in SafeMarkup::format().
@dataProvider providerTestSafeMarkupUri
File
- core/
tests/ Drupal/ KernelTests/ Component/ Utility/ SafeMarkupKernelTest.php, line 59 - Contains \Drupal\KernelTests\Component\Utility\SafeMarkupKernelTest.
Class
- SafeMarkupKernelTest
- Provides a test covering integration of SafeMarkup with other systems.
Namespace
Drupal\KernelTests\Component\UtilityCode
public function testSafeMarkupUri($string, $uri, $options, $expected) {
$args = self::getSafeMarkupUriArgs($uri, $options);
$this
->assertEquals($expected, SafeMarkup::format($string, $args));
}