public function UnroutedUrlAssemblerTest::testAssembleWithLeadingSlash in Drupal 10
Same name and namespace in other branches
- 8 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()
@covers ::assemble
File
- core/
tests/ Drupal/ Tests/ Core/ Utility/ UnroutedUrlAssemblerTest.php, line 68
Class
- UnroutedUrlAssemblerTest
- @coversDefaultClass \Drupal\Core\Utility\UnroutedUrlAssembler @group Utility
Namespace
Drupal\Tests\Core\UtilityCode
public function testAssembleWithLeadingSlash() {
$this
->expectException(\InvalidArgumentException::class);
$this->unroutedUrlAssembler
->assemble('/drupal.org');
}