function UrlTest::testGetUriForInternalUrl
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/UrlTest.php \Drupal\Tests\Core\UrlTest::testGetUriForInternalUrl()
- 8.9.x core/tests/Drupal/Tests/Core/UrlTest.php \Drupal\Tests\Core\UrlTest::testGetUriForInternalUrl()
- 11.x core/tests/Drupal/Tests/Core/UrlTest.php \Drupal\Tests\Core\UrlTest::testGetUriForInternalUrl()
Tests the getUri() method for internal URLs.
@depends testUrlFromRequest
@covers ::getUri
Parameters
\Drupal\Core\Url[] $urls: Array of URL objects.
File
-
core/
tests/ Drupal/ Tests/ Core/ UrlTest.php, line 293
Class
- UrlTest
- @coversDefaultClass \Drupal\Core\Url @group UrlTest
Namespace
Drupal\Tests\CoreCode
public function testGetUriForInternalUrl($urls) : void {
$this->expectException(\UnexpectedValueException::class);
foreach ($urls as $url) {
$url->getUri();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.