function 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[[api-linebreak]] @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.
