function UrlTest::testGetUriForInternalUrl
Tests the getUri() method for internal URLs.
@legacy-covers ::getUri
Attributes
#[Depends('testUrlFromRequest')]
Parameters
\Drupal\Core\Url[] $urls: Array of URL objects.
File
-
core/
tests/ Drupal/ Tests/ Core/ UrlTest.php, line 295
Class
- UrlTest
- Tests Drupal\Core\Url.
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.