public function UrlTest::testToUriStringForEntity in Drupal 8
Tests the toUriString() method with entity: URIs.
@covers ::toUriString
@dataProvider providerTestToUriStringForEntity
File
- core/
tests/ Drupal/ Tests/ Core/ UrlTest.php, line 650 - Contains \Drupal\Tests\Core\UrlTest.
Class
- UrlTest
- @coversDefaultClass \Drupal\Core\Url @group UrlTest
Namespace
Drupal\Tests\CoreCode
public function testToUriStringForEntity($uri, $options, $uri_string) {
$url = Url::fromUri($uri, $options);
$this
->assertSame($url
->toUriString(), $uri_string);
}