We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f8698b commit 1ee6fdfCopy full SHA for 1ee6fdf
tests/Maker/Security/MakeFormLoginTest.php
@@ -103,6 +103,11 @@ public function getTestDetails(): \Generator
103
104
private function runLoginTest(MakerTestRunner $runner): void
105
{
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
+
111
$fixturePath = 'security/make-form-login/';
112
113
$runner->renderTemplateFile($fixturePath.'/LoginTest.php', 'tests/LoginTest.php', []);
0 commit comments