Skip to content

Commit

Permalink
minor #51499 [Security] Remove isAuthenticated and `setAuthenticate…
Browse files Browse the repository at this point in the history
…d` 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
  • Loading branch information
fabpot committed Aug 30, 2023
2 parents 6f81adc + f193fee commit 47058ea
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Tests/Firewall/ContextListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -563,15 +563,6 @@ public function getUserIdentifier(): string
return $this->getUserIdentifier();
}

public function isAuthenticated(): bool
{
return true;
}

public function setAuthenticated(bool $isAuthenticated)
{
}

public function eraseCredentials(): void
{
}
Expand Down

0 comments on commit 47058ea

Please sign in to comment.