function UnroutedUrlAssemblerTest::testAssembleWithLeadingSlash
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Utility/UnroutedUrlAssemblerTest.php \Drupal\Tests\Core\Utility\UnroutedUrlAssemblerTest::testAssembleWithLeadingSlash()
- 10 core/tests/Drupal/Tests/Core/Utility/UnroutedUrlAssemblerTest.php \Drupal\Tests\Core\Utility\UnroutedUrlAssemblerTest::testAssembleWithLeadingSlash()
- 9 core/tests/Drupal/Tests/Core/Utility/UnroutedUrlAssemblerTest.php \Drupal\Tests\Core\Utility\UnroutedUrlAssemblerTest::testAssembleWithLeadingSlash()
- 8.9.x core/tests/Drupal/Tests/Core/Utility/UnroutedUrlAssemblerTest.php \Drupal\Tests\Core\Utility\UnroutedUrlAssemblerTest::testAssembleWithLeadingSlash()
Tests assemble with leading slash.
File
-
core/
tests/ Drupal/ Tests/ Core/ Utility/ UnroutedUrlAssemblerTest.php, line 75
Class
Namespace
Drupal\Tests\Core\UtilityCode
public function testAssembleWithLeadingSlash() : void {
$this->expectException(\InvalidArgumentException::class);
$this->unroutedUrlAssembler
->assemble('/drupal.org');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.