public function UrlGeneratorTest::testNoTrailingSlashForMultipleOptionalParameters

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Tests/Generator/UrlGeneratorTest.php, line 218

Class

UrlGeneratorTest

Namespace

Symfony\Component\Routing\Tests\Generator

Code

public function testNoTrailingSlashForMultipleOptionalParameters() {
  $routes = $this
    ->getRoutes('test', new Route('/category/{slug1}/{slug2}/{slug3}', array(
    'slug2' => null,
    'slug3' => null,
  )));
  $this
    ->assertEquals('/app.php/category/foo', $this
    ->getGenerator($routes)
    ->generate('test', array(
    'slug1' => 'foo',
  )));
}