function UrlTest::testGetUriForInternalUrl
Same name in other branches
- 8.9.x core/tests/Drupal/Tests/Core/UrlTest.php \Drupal\Tests\Core\UrlTest::testGetUriForInternalUrl()
- 10 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 315
Class
- UrlTest
- @coversDefaultClass \Drupal\Core\Url @group UrlTest
Namespace
Drupal\Tests\CoreCode
public function testGetUriForInternalUrl($urls) {
$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.