You are here

public function SafeMarkupKernelTest::testSafeMarkupUriWithExceptionUri in Zircon Profile 8

Same name and namespace in other branches
  1. 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\Utility

Code

public function testSafeMarkupUriWithExceptionUri($string, $uri) {

  // Should throw an \InvalidArgumentException, due to Uri::toString().
  $args = self::getSafeMarkupUriArgs($uri);
  SafeMarkup::format($string, $args);
}