8000 minor #20009 [Routing] fix reference type argument type (xabbuh) · enumag/symfony@f7f2871 · GitHub
[go: up one dir, main page]

Skip to content

Commit f7f2871

Browse files
committed
minor symfony#20009 [Routing] fix reference type argument type (xabbuh)
This PR was merged into the 3.2-dev branch. Discussion ---------- [Routing] fix reference type argument type | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- a8dd628 [Routing] fix reference type argument type
2 parents 5607c52 + a8dd628 commit f7f2871

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines 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