Skip to content

[HttpKernel] Don't rely on session service in tests #44749

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 21, 2021

Conversation

derrabus
Copy link
Member

Q A
Branch? 5.4
Bug fix? no
New feature? no
Deprecations? no
Tickets Follow-up to #44518
License MIT
Doc PR N/A

The test introduced by #44518 makes use of the deprecated session service mechanism. Instead, I've attached the session to the request. This allows us to merge the test up to 6.0 and beyond without breaking it.

@carsonbot carsonbot added this to the 5.4 milestone Dec 21, 2021
@derrabus
Copy link
Member Author

cc @simonchrz @alexander-schranz

Copy link
Contributor

@simonchrz simonchrz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks better to me 👍

@carsonbot carsonbot changed the title Don't rely on session service in tests [HttpKernel] Don't rely on session service in tests Dec 21, 2021
@derrabus derrabus merged commit bfbc5a6 into symfony:5.4 Dec 21, 2021
@derrabus derrabus deleted the bugfix/no-session-service branch December 21, 2021 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants