You are here

public function FormattableMarkupKernelTest::testFormattableMarkupUri in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Component/Render/FormattableMarkupKernelTest.php \Drupal\KernelTests\Component\Render\FormattableMarkupKernelTest::testFormattableMarkupUri()
  2. 9 core/tests/Drupal/KernelTests/Component/Render/FormattableMarkupKernelTest.php \Drupal\KernelTests\Component\Render\FormattableMarkupKernelTest::testFormattableMarkupUri()

Tests URL ":placeholders" in \Drupal\Component\Render\FormattableMarkup.

@dataProvider providerTestFormattableMarkupUri

File

core/tests/Drupal/KernelTests/Component/Render/FormattableMarkupKernelTest.php, line 45

Class

FormattableMarkupKernelTest
Provides a test covering integration of FormattableMarkup with other systems.

Namespace

Drupal\KernelTests\Component\Render

Code

public function testFormattableMarkupUri($string, $uri, $options, $expected) {
  $args = self::getFormattableMarkupUriArgs($uri, $options);
  $this
    ->assertEquals($expected, new FormattableMarkup($string, $args));
}