Confirms that generated routes will have aliased paths.
File
- drupal/core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php, line 105
- Contains Drupal\Tests\Core\Routing\UrlGeneratorTest.
Class
- UrlGeneratorTest
- Basic tests for the Route.
Namespace
Drupal\Tests\Core\Routing
Code
public function testAliasGeneration() {
$url = $this->generator
->generate('test_1');
$this
->assertEquals('/hello/world', $url);
}