public function UrlTest::testFromUriNumber in Drupal 8
Tests the fromUri() method with a base: URI starting with a number.
@covers ::fromUri
File
- core/
tests/ Drupal/ Tests/ Core/ UrlTest.php, line 792 - Contains \Drupal\Tests\Core\UrlTest.
Class
- UrlTest
- @coversDefaultClass \Drupal\Core\Url @group UrlTest
Namespace
Drupal\Tests\CoreCode
public function testFromUriNumber() {
$url = Url::fromUri('base:2015/10/06');
$this
->assertSame($url
->toUriString(), 'base:/2015/10/06');
}