public function UrlTest::testGetUriForInternalUrl in Drupal 8
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 319 - Contains \Drupal\Tests\Core\UrlTest.
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();
}
}