function UnroutedUrlAssemblerTest::testAssembleWithLocalUri

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Utility/UnroutedUrlAssemblerTest.php \Drupal\Tests\Core\Utility\UnroutedUrlAssemblerTest::testAssembleWithLocalUri()
  2. 10 core/tests/Drupal/Tests/Core/Utility/UnroutedUrlAssemblerTest.php \Drupal\Tests\Core\Utility\UnroutedUrlAssemblerTest::testAssembleWithLocalUri()
  3. 9 core/tests/Drupal/Tests/Core/Utility/UnroutedUrlAssemblerTest.php \Drupal\Tests\Core\Utility\UnroutedUrlAssemblerTest::testAssembleWithLocalUri()
  4. 8.9.x core/tests/Drupal/Tests/Core/Utility/UnroutedUrlAssemblerTest.php \Drupal\Tests\Core\Utility\UnroutedUrlAssemblerTest::testAssembleWithLocalUri()

Tests assemble with local uri.

@legacy-covers ::assemble @legacy-covers ::buildLocalUrl

Attributes

#[DataProvider('providerTestAssembleWithLocalUri')]

File

core/tests/Drupal/Tests/Core/Utility/UnroutedUrlAssemblerTest.php, line 142

Class

UnroutedUrlAssemblerTest
Tests Drupal\Core\Utility\UnroutedUrlAssembler.

Namespace

Drupal\Tests\Core\Utility

Code

public function testAssembleWithLocalUri($uri, array $options, $subdir, $expected) : void {
  $this->setupRequestStack($subdir);
  $this->assertEquals($expected, $this->unroutedUrlAssembler
    ->assemble($uri, $options));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.