function UnroutedUrlTest::testGetRouteName
Tests the getRouteName() method.
@legacy-covers ::getRouteName
Attributes
#[DataProvider('providerFromUri')]
#[Depends('testFromUri')]
File
-
core/
tests/ Drupal/ Tests/ Core/ UnroutedUrlTest.php, line 182
Class
- UnroutedUrlTest
- Tests Drupal\Core\Url.
Namespace
Drupal\Tests\CoreCode
public function testGetRouteName($uri) : void {
$url = Url::fromUri($uri);
$this->expectException(\UnexpectedValueException::class);
$url->getRouteName();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.