public function UrlTest::testGetRouteNameWithExternalUrl in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/UrlTest.php \Drupal\Tests\Core\UrlTest::testGetRouteNameWithExternalUrl()
Tests the getRouteName() with an external URL.
@covers ::getRouteName @expectedException \UnexpectedValueException
File
- core/
tests/ Drupal/ Tests/ Core/ UrlTest.php, line 411 - Contains \Drupal\Tests\Core\UrlTest.
Class
- UrlTest
- @coversDefaultClass \Drupal\Core\Url @group UrlTest
Namespace
Drupal\Tests\CoreCode
public function testGetRouteNameWithExternalUrl() {
$url = Url::fromUri('http://example.com');
$url
->getRouteName();
}