You are here

public function HtmlTest::testTransformRootRelativeUrlsToAbsoluteAssertion in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/Utility/HtmlTest.php \Drupal\Tests\Component\Utility\HtmlTest::testTransformRootRelativeUrlsToAbsoluteAssertion()
  2. 9 core/tests/Drupal/Tests/Component/Utility/HtmlTest.php \Drupal\Tests\Component\Utility\HtmlTest::testTransformRootRelativeUrlsToAbsoluteAssertion()

@covers ::transformRootRelativeUrlsToAbsolute @dataProvider providerTestTransformRootRelativeUrlsToAbsoluteAssertion

File

core/tests/Drupal/Tests/Component/Utility/HtmlTest.php, line 349

Class

HtmlTest
Tests \Drupal\Component\Utility\Html.

Namespace

Drupal\Tests\Component\Utility

Code

public function testTransformRootRelativeUrlsToAbsoluteAssertion($scheme_and_host) {
  $this
    ->expectException(\AssertionError::class);
  Html::transformRootRelativeUrlsToAbsolute('', $scheme_and_host);
}