function UnroutedUrlAssemblerTest::testAssembleWithNeitherExternalNorDomainLocalUri
Same name and namespace in other branches
- 8.9.x core/tests/Drupal/Tests/Core/Utility/UnroutedUrlAssemblerTest.php \Drupal\Tests\Core\Utility\UnroutedUrlAssemblerTest::testAssembleWithNeitherExternalNorDomainLocalUri()
- 10 core/tests/Drupal/Tests/Core/Utility/UnroutedUrlAssemblerTest.php \Drupal\Tests\Core\Utility\UnroutedUrlAssemblerTest::testAssembleWithNeitherExternalNorDomainLocalUri()
- 11.x core/tests/Drupal/Tests/Core/Utility/UnroutedUrlAssemblerTest.php \Drupal\Tests\Core\Utility\UnroutedUrlAssemblerTest::testAssembleWithNeitherExternalNorDomainLocalUri()
@covers ::assemble
File
-
core/
tests/ Drupal/ Tests/ Core/ Utility/ UnroutedUrlAssemblerTest.php, line 60
Class
- UnroutedUrlAssemblerTest
- @coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Utility%21UnroutedUrlAssembler.php/class/UnroutedUrlAssembler/9" title="Provides a way to build external or non Drupal local domain URLs." class="local">\Drupal\Core\Utility\UnroutedUrlAssembler</a> @group Utility
Namespace
Drupal\Tests\Core\UtilityCode
public function testAssembleWithNeitherExternalNorDomainLocalUri() {
$this->expectException(\InvalidArgumentException::class);
$this->unroutedUrlAssembler
->assemble('wrong-url');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.