Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 40a6b17

Browse files
committed
minor #41372 [Routing] Remove legacy group from Doctrine Annotations test (derrabus)
This PR was merged into the 5.3 branch. Discussion ---------- [Routing] Remove legacy group from Doctrine Annotations test | Q | A | ------------- | --- | Branch? | 5.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | N/A | License | MIT | Doc PR | N/A A test case in `RoutingTest` is incorrectly flagged as legacy. I've removed the legacy group and changed the wording of the test cases to make clear what they're actually testing. Commits ------- 6b8ff65 [Routing] Remove legacy group from Doctrine Annotations test
2 parents 03489a4 + 6b8ff65 commit 40a6b17

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Symfony/Component/Routing/Tests/Annotation/RouteTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,16 @@ public function testDeprecationArrayAsFirstArgument(string $parameter, $value, s
7474
* @requires PHP 8
7575
* @dataProvider getValidParameters
7676
*/
77-
public function testRouteParameters(string $methodName, string $getter, $expectedReturn)
77+
public function testLoadFromAttribute(string $methodName, string $getter, $expectedReturn)
7878
{
7979
$route = $this->getMethodAnnotation($methodName, true);
8080
$this->assertEquals($route->$getter(), $expectedReturn);
8181
}
8282

8383
/**
84-
* @group legacy
8584
* @dataProvider getValidParameters
8685
*/
87-
public function testLegacyRouteParameters(string $methodName, string $getter, $expectedReturn)
86+
public function testLoadFromDoctrineAnnotation(string $methodName, string $getter, $expectedReturn)
8887
{
8988
$route = $this->getMethodAnnotation($methodName, false);
9089
$this->assertEquals($route->$getter(), $expectedReturn);

0 commit comments

Comments
 (0)