Skip to content

Commit 47058ea

Browse files
committed
minor #51499 [Security] Remove isAuthenticated and setAuthenticated token methods in tests (alamirault)
This PR was merged into the 6.3 branch. Discussion ---------- [Security] Remove `isAuthenticated` and `setAuthenticated` token methods in tests | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> `isAuthenticated` and `setAuthenticated` methods are not in TokenInterface anymore, so we can remove it in tests Commits ------- 9df0a3f1a2 [Security] Remove isAuthenticated and setAuthenticated token methods in tests
2 parents 6f81adc + f193fee commit 47058ea

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

Tests/Firewall/ContextListenerTest.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -563,15 +563,6 @@ public function getUserIdentifier(): string
563563
return $this->getUserIdentifier();
564564
}
565565

566-
public function isAuthenticated(): bool
567-
{
568-
return true;
569-
}
570-
571-
public function setAuthenticated(bool $isAuthenticated)
572-
{
573-
}
574-
575566
public function eraseCredentials(): void
576567
{
577568
}

0 commit comments

Comments
 (0)