8000 [Routing] fix reference type argument type · symfony/symfony@a8dd628 · GitHub
[go: up one dir, main page]

Skip to content

Commit a8dd628

Browse files
committed
[Routing] fix reference type argument type
1 parent 167c14f commit a8dd628

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/Routing/Tests/Generator/UrlGeneratorTest.php

-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -647,17 +647,17 @@ public function testFragmentsCanBeAppendedToUrls()
647647
{
648648
$routes = $this->getRoutes('test', new Route('/testing'));
649649

650-
$url = $this->getGenerator($routes)->generate('test', array('_fragment' => 'frag ment'), true);
650+
$url = $this->getGenerator($routes)->generate('test', array('_fragment' => 'frag ment'), UrlGeneratorInterface::ABSOLUTE_PATH);
651651
$this->assertEquals('/app.php/testing#frag%20ment', $url);
652652

653-
$url = $this->getGenerator($routes)->generate('test', array('_fragment' => '0'), true);
653+
$url = $this->getGenerator($routes)->generate('test', array('_fragment' => '0'), UrlGeneratorInterface::ABSOLUTE_PATH);
654654
$this->assertEquals('/app.php/testing#0', $url);
655655
}
656656

657657
public function testFragmentsDoNotEscapeValidCharacters()
658658
{
659659
$routes = $this->getRoutes('test', new Route('/testing'));
660-
$url = $this->getGenerator($routes)->generate('test', array('_fragment' => '?/'), true);
660+
$url = $this->getGenerator($routes)->generate('test', array('_fragment' => '?/'), UrlGeneratorInterface::ABSOLUTE_PATH);
661661

662662
$this->assertEquals('/app.php/testing#?/', $url);
663663
}

0 commit comments

Comments
 (0)
0