public function UrlTest::testToUriStringForRoute in Drupal 8
Tests the toUriString() method with route: URIs.
@covers ::toUriString
@dataProvider providerTestToUriStringForRoute
File
- core/
tests/ Drupal/ Tests/ Core/ UrlTest.php, line 804 - Contains \Drupal\Tests\Core\UrlTest.
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);
}