You are here

public function UnroutedUrlAssemblerTest::testAssembleWithNeitherExternalNorDomainLocalUri in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Utility/UnroutedUrlAssemblerTest.php \Drupal\Tests\Core\Utility\UnroutedUrlAssemblerTest::testAssembleWithNeitherExternalNorDomainLocalUri()
  2. 10 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 \Drupal\Core\Utility\UnroutedUrlAssembler @group Utility

Namespace

Drupal\Tests\Core\Utility

Code

public function testAssembleWithNeitherExternalNorDomainLocalUri() {
  $this
    ->expectException(\InvalidArgumentException::class);
  $this->unroutedUrlAssembler
    ->assemble('wrong-url');
}