function FormattableMarkupKernelTest::testFormattableMarkupUriWithExceptionUri
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Component/Render/FormattableMarkupKernelTest.php \Drupal\KernelTests\Component\Render\FormattableMarkupKernelTest::testFormattableMarkupUriWithExceptionUri()
- 8.9.x core/tests/Drupal/KernelTests/Component/Render/FormattableMarkupKernelTest.php \Drupal\KernelTests\Component\Render\FormattableMarkupKernelTest::testFormattableMarkupUriWithExceptionUri()
- 10 core/tests/Drupal/KernelTests/Component/Render/FormattableMarkupKernelTest.php \Drupal\KernelTests\Component\Render\FormattableMarkupKernelTest::testFormattableMarkupUriWithExceptionUri()
@dataProvider providerTestFormattableMarkupUriWithException
File
-
core/
tests/ Drupal/ KernelTests/ Component/ Render/ FormattableMarkupKernelTest.php, line 106
Class
- FormattableMarkupKernelTest
- Provides a test covering integration of FormattableMarkup with other systems.
Namespace
Drupal\KernelTests\Component\RenderCode
public function testFormattableMarkupUriWithExceptionUri($string, $uri) : void {
// Should throw an \InvalidArgumentException, due to Uri::toString().
$this->expectException(\InvalidArgumentException::class);
$args = self::getFormattableMarkupUriArgs($uri);
new FormattableMarkup($string, $args);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.