Skip to content

Commit 6304938

Browse files
minor symfony#23489 [FrameworkBundle] Fix tests (nicolas-grekas)
This PR was merged into the 3.2 branch. Discussion ---------- [FrameworkBundle] Fix tests | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Related to the changes introduced in symfony#23440. Commits ------- 2e0c6bc [FrameworkBundle] Fix tests
2 parents 2b2c0b7 + 2e0c6bc commit 6304938

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RedirectableUrlMatcherTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ public function testRedirectWhenNoSlash()
2525
$coll->add('foo', new Route('/foo/'));
2626

2727
$matcher = new RedirectableUrlMatcher($coll, $context = new RequestContext());
28+
$parameters = $matcher->match('/foo');
29+
if ('foo' === $parameters['_route']) {
30+
$parameters['_route'] = null; // FC with behavior on 3.4
31+
}
2832

2933
$this->assertEquals(array(
3034
'_controller' => 'Symfony\Bundle\FrameworkBundle\Controller\RedirectController::urlRedirectAction',
@@ -35,7 +39,7 @@ public function testRedirectWhenNoSlash()
3539
'httpsPort' => $context->getHttpsPort(),
3640
'_route' => null,
3741
),
38-
$matcher->match('/foo')
42+
$parameters
3943
);
4044
}
4145

0 commit comments

Comments
 (0)