public function SafeMarkupKernelTest::testSafeMarkupUriWithExceptionUri 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::testSafeMarkupUriWithExceptionUri()
@dataProvider providerTestSafeMarkupUriWithException @expectedException \InvalidArgumentException
File
- core/
tests/ Drupal/ KernelTests/ Component/ Utility/ SafeMarkupKernelTest.php, line 119 - 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 testSafeMarkupUriWithExceptionUri($string, $uri) {
// Should throw an \InvalidArgumentException, due to Uri::toString().
$args = self::getSafeMarkupUriArgs($uri);
SafeMarkup::format($string, $args);
}