Skip to content

Commit 1ee6fdf

Browse files
authored
[make:security:form-login] configure route attributes for 5.4 (#1268)
1 parent 2f8698b commit 1ee6fdf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/Maker/Security/MakeFormLoginTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ public function getTestDetails(): \Generator
103103

104104
private function runLoginTest(MakerTestRunner $runner): void
105105
{
106+
if (60000 > $runner->getSymfonyVersion()) {
107+
// @legacy - In 5.4 tests, we need to tell Symfony to look for the route attributes in `src/Controller`
108+
$runner->copy('router-annotations.yaml', 'config/routes/annotations.yaml');
109+
}
110+
106111
$fixturePath = 'security/make-form-login/';
107112

108113
$runner->renderTemplateFile($fixturePath.'/LoginTest.php', 'tests/LoginTest.php', []);

0 commit comments

Comments
 (0)