public function UrlGeneratorTest::testAliasGenerationWithParameters

Confirms that generated routes will have aliased paths.

File

drupal/core/tests/Drupal/Tests/Core/Routing/UrlGeneratorTest.php, line 113
Contains Drupal\Tests\Core\Routing\UrlGeneratorTest.

Class

UrlGeneratorTest
Basic tests for the Route.

Namespace

Drupal\Tests\Core\Routing

Code

public function testAliasGenerationWithParameters() {
  $url = $this->generator
    ->generate('test_2', array(
    'narf' => '5',
  ));
  $this
    ->assertEquals('/goodbye/cruel/world', $url, 'Correct URL generated including alias and parameters.');
}