function UnroutedUrlAssemblerTest::testAssembleWithNeitherExternalNorDomainLocalUri

Tests assemble with neither external nor domain local uri.

@legacy-covers ::assemble

File

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

Class

UnroutedUrlAssemblerTest
Tests Drupal\Core\Utility\UnroutedUrlAssembler.

Namespace

Drupal\Tests\Core\Utility

Code

public function testAssembleWithNeitherExternalNorDomainLocalUri() : void {
  $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.