Skip to content

Commit c799bad

Browse files
committed
fix path assertions
1 parent bce26f8 commit c799bad

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/Security/fixtures/expected/SecurityController_login.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class SecurityController extends AbstractController
1111
{
12-
#[Route('/login', name: 'app_login')]
12+
#[Route(path: '/login', name: 'app_login')]
1313
public function login(AuthenticationUtils $authenticationUtils): Response
1414
{
1515
// if ($this->getUser()) {

tests/Security/fixtures/expected/SecurityController_login_logout.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class SecurityController extends AbstractController
1111
{
12-
#[Route('/login', name: 'app_login')]
12+
#[Route(path: '/login', name: 'app_login')]
1313
public function login(AuthenticationUtils $authenticationUtils): Response
1414
{
1515
// if ($this->getUser()) {
@@ -24,7 +24,7 @@ public function login(AuthenticationUtils $authenticationUtils): Response
2424
return $this->render('security/login.html.twig', ['last_username' => $lastUsername, 'error' => $error]);
2525
}
2626

27-
#[Route('/logout', name: 'app_logout')]
27+
#[Route(path: '/logout', name: 'app_logout')]
2828
public function logout(): void
2929
{
3030
throw new \LogicException('This method can be blank - it will be intercepted by the logout key on your firewall.');

tests/Security/fixtures/expected/SecurityController_logout.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class SecurityController extends AbstractController
99
{
10-
#[Route('/logout', name: 'app_logout')]
10+
#[Route(path: '/logout', name: 'app_logout')]
1111
public function logout(): void
1212
{
1313
throw new \LogicException('This method can be blank - it will be intercepted by the logout key on your firewall.');

0 commit comments

Comments
 (0)