public function UrlGeneratorTest::testQueryParamSameAsDefault

File

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

Class

UrlGeneratorTest

Namespace

Symfony\Component\Routing\Tests\Generator

Code

public function testQueryParamSameAsDefault() {
  $routes = $this
    ->getRoutes('test', new Route('/test', array(
    'default' => 'value',
  )));
  $this
    ->assertSame('/app.php/test', $this
    ->getGenerator($routes)
    ->generate('test', array(
    'default' => 'foo',
  )));
  $this
    ->assertSame('/app.php/test', $this
    ->getGenerator($routes)
    ->generate('test', array(
    'default' => 'value',
  )));
  $this
    ->assertSame('/app.php/test', $this
    ->getGenerator($routes)
    ->generate('test'));
}