function UrlTest::testToUriStringForRoute
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/UrlTest.php \Drupal\Tests\Core\UrlTest::testToUriStringForRoute()
- 10 core/tests/Drupal/Tests/Core/UrlTest.php \Drupal\Tests\Core\UrlTest::testToUriStringForRoute()
- 11.x core/tests/Drupal/Tests/Core/UrlTest.php \Drupal\Tests\Core\UrlTest::testToUriStringForRoute()
Tests the toUriString() method with route: URIs.
@covers ::toUriString
@dataProvider providerTestToUriStringForRoute
File
-
core/
tests/ Drupal/ Tests/ Core/ UrlTest.php, line 804
Class
- UrlTest
- @coversDefaultClass \Drupal\Core\Url @group UrlTest
Namespace
Drupal\Tests\CoreCode
public function testToUriStringForRoute($uri, $options, $uri_string) {
$url = Url::fromUri($uri, $options);
$this->assertSame($url->toUriString(), $uri_string);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.